{"id":32796,"date":"2016-09-15T01:19:34","date_gmt":"2016-09-15T01:19:34","guid":{"rendered":"http:\/\/rkenny.org\/?p=32796"},"modified":"2016-09-28T17:25:04","modified_gmt":"2016-09-28T17:25:04","slug":"eme6207-php","status":"publish","type":"post","link":"https:\/\/emeclasses.org\/?p=32796","title":{"rendered":"EME 6207 &#8211; Tech Ed: Introduction to php"},"content":{"rendered":"<p><ul id=\"kidlists\"><\/ul><br \/><hr \/><\/p>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#004d4d;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#008080;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Textbook Reference(s):<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><\/p>\n<p><span style=\"color: #800000;\"><strong>N\/A<\/strong><\/span><\/div><\/div>\n<h3>To get started, take a look at these two short overviews to get an idea of what php is and its relationship with xml (the next lesson). Both videos run around 25 minutes.<\/h3>\n<p>[Spider_Single_Video track=&#8221;5&#8243; theme_id=&#8221;7&#8243; priority=&#8221;0&#8243;]<\/p>\n<div class=\"su-divider su-divider-style-default\" style=\"margin:15px 0;border-width:3px;border-color:#999999\"><\/div>\n<p>[Spider_Single_Video track=&#8221;4&#8243; theme_id=&#8221;7&#8243; priority=&#8221;1&#8243;]<\/p>\n<h2>Ok..ok.. so just What IS <a href=\"http:\/\/www.php.net\/\">php<\/a>?<\/h2>\n<ul>\n<li>PHP stands for <strong>P<\/strong>HP: <strong>H<\/strong>ypertext <strong>P<\/strong>reprocessor. \u00a0So it&#8217;s used to manipulate hypertext dynamically.<\/li>\n<li>PHP is a server-side scripting language, like<strong> <a href=\"http:\/\/en.wikipedia.org\/wiki\/Active_Server_Pages\">ASP<\/a><\/strong><\/li>\n<li>PHP scripts are executed on the server<\/li>\n<li>PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)<\/li>\n<li>PHP is an <strong><a href=\"http:\/\/en.wikipedia.org\/wiki\/Open-source_software\">open source software<\/a><\/strong><\/li>\n<li>PHP is free to download and use<\/li>\n<\/ul>\n<p><span class=\"su-highlight\" style=\"background:#fc0;color:#000\">&nbsp;Ok so what php does (in conjunction with xml) is to add CONTEXT and the processing of data stored on Web pages. By stripping the functions out from one another (form, navigation, data and context), you have the elements necessary for <a href=\"http:\/\/www.w3.org\/2001\/sw\/\"><strong>the semantic Web<\/strong><\/a>&#8230;. each plays a role&#8230; add the idea of mobile computing and you have the beginnings of a recipe for <a href=\"http:\/\/www.webopedia.com\/TERM\/P\/pervasive_computing.html\"><strong>pervasive or ubitquitous computing<\/strong><\/a>.&nbsp;<\/span><br \/>\nWhat is a PHP File?<\/p>\n<ul>\n<li>PHP files can contain text, HTML tags and scripts<\/li>\n<li>the script\u00a0part of php is enclosed in opening and closing tags &lt;?php code ?&gt;<\/li>\n<li>PHP files are returned to the browser as plain HTML. \u00a0The server does all of the manipulation before the data is sent to the user<\/li>\n<li>PHP files have a file extension of &#8220;.php&#8221;<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h2>What is <a href=\"http:\/\/en.wikipedia.org\/wiki\/MySQL\">MySQL<\/a>?<\/h2>\n<ul>\n<li>MySQL is a database server<\/li>\n<li>MySQL is ideal for both small and large applications<\/li>\n<li>MySQL supports standard SQL<\/li>\n<li>MySQL is also open source<\/li>\n<li>MySQL compiles on a number of platforms<\/li>\n<li>MySQL is free to download and use<\/li>\n<\/ul>\n<p>PHP + MySQL<\/p>\n<p>PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)<\/p>\n<p>Why PHP?<\/p>\n<ul>\n<li>PHP runs on different platforms (Windows, Linux, Unix, etc.)<\/li>\n<li>PHP is compatible with almost all servers used today (<strong><a href=\"http:\/\/httpd.apache.org\/\">Apache<\/a><\/strong>, <strong><a href=\"http:\/\/blogs.iis.net\/bills\/archive\/2007\/05\/07\/iis-vs-apache.aspx\">IIS<\/a><\/strong>, etc.)<\/li>\n<li>PHP is FREE to download from the official PHP resource: <strong><a href=\"http:\/\/www.php.net\/\" target=\"_blank\"> www.php.net<\/a><\/strong><\/li>\n<li>PHP is easy to learn and runs efficiently on the server side<\/li>\n<\/ul>\n<span class=\"su-highlight\" style=\"background:#fc0;color:#000\">&nbsp;Are you beginning to see a trend here? Open Source seems to jump out at you every link on this page? hmmmmm&nbsp;<\/span>\n<p>Where to Start?<\/p>\n<p>To get access to a web server with PHP support, you can:<\/p>\n<ul>\n<li>Install Apache (or IIS) on your own server, install PHP, and MySQL (known as AMP)<\/li>\n<li>Or find a web hosting plan with PHP and MySQL support<\/li>\n<li>install a manager on your computer. <a href=\"https:\/\/www.mamp.info\/en\/\">\u00a0I recommend MAMP<\/a><\/li>\n<\/ul>\n<p>What do you Need?<\/p>\n<p>If your server supports PHP you don&#8217;t need to do anything.<\/p>\n<p>Just create some .php files in your web directory, and the server will parse them for you. Because it is free, most web hosts offer PHP support.<\/p>\n<p>However, if your server does not support PHP, you must install PHP.<br \/>\n<span class=\"su-highlight\" style=\"background:#fc0;color:#000\">&nbsp;Note: <a href=\"http:\/\/www.hostgator.com\/\">hostgator<\/a>, one of the hosting services we are recommending does support mysql and php&#8230; the other one is <a href=\"http:\/\/dreamhost.com\">dreamhost<\/a>&nbsp;<\/span><\/p>\n<p>PHP code is executed on the server, and the plain HTML result is sent to the browser.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<hr \/>\n<p>When you are done reviewing all of this, spend some time <a href=\"http:\/\/www.w3schools.com\/php\/\"><strong>on this site to go through some of the basic tutorials<\/strong><\/a>. When every you see a greet button labeled &#8220;Run Example&#8221; \u00a0you can mess with that code. \u00a0You are not expected to become an expert by any means but you may wish to take the short quiz at the beginning to test your knowledge.<\/p>\n<hr \/>\n<hr \/>\n<hr \/>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#0033cc;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#3366ff;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Do This:<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><\/p>\n<p><a href=\"http:\/\/www.immersive-learning.org\/?attachment_id=16917\" rel=\"attachment wp-att-16917\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-16917\" src=\"http:\/\/rkenny.org\/wp-content\/uploads\/2010\/08\/dothis.gif\" alt=\"\" width=\"60\" height=\"48\" \/><\/a><\/p>\n<p>Seeing as you perhaps took the little quiz on php, there is not really much more to do here. To gain a better understanding, <a href=\"\/?p=32926\"><strong>go on to the next lesson on xml<\/strong><\/a>.<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>To get started, take a look at these two short overviews to get an idea of what php is and its relationship with xml (the next lesson). Both videos run around 25 minutes. [Spider_Single_Video track=&#8221;5&#8243; theme_id=&#8221;7&#8243; priority=&#8221;0&#8243;] [Spider_Single_Video track=&#8221;4&#8243; theme_id=&#8221;7&#8243; priority=&#8221;1&#8243;] Ok..ok.. so just What IS php? PHP stands for PHP: Hypertext Preprocessor. \u00a0So it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[96],"tags":[],"class_list":["post-32796","post","type-post","status-publish","format-standard","hentry","category-tech-ed-6207"],"_links":{"self":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32796"}],"version-history":[{"count":7,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32796\/revisions"}],"predecessor-version":[{"id":43371,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32796\/revisions\/43371"}],"wp:attachment":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}