{"id":415,"date":"2009-01-27T03:41:43","date_gmt":"2009-01-27T08:41:43","guid":{"rendered":"http:\/\/itp.indiamos.com\/blog\/?p=415"},"modified":"2009-04-14T01:20:01","modified_gmt":"2009-04-14T06:20:01","slug":"php-101","status":"publish","type":"post","link":"https:\/\/itp.indiamos.com\/blog\/2009\/01\/27\/php-101\/","title":{"rendered":"PHP 101"},"content":{"rendered":"<p><a href=\"http:\/\/www.flickr.com\/photos\/emerym42\/2614607486\/\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/itp.indiamos.com\/blog\/wp-content\/uploads\/2009\/01\/hello_world.jpg?resize=450%2C340\" alt=\"Hello World\" title=\"Hello World\" width=\"450\" height=\"340\" class=\"alignnone size-full wp-image-416\" srcset=\"https:\/\/i2.wp.com\/itp.indiamos.com\/blog\/wp-content\/uploads\/hello_world.jpg?w=450&amp;ssl=1 450w, https:\/\/i2.wp.com\/itp.indiamos.com\/blog\/wp-content\/uploads\/hello_world.jpg?w=400&amp;ssl=1 400w\" sizes=\"(max-width: 450px) 100vw, 450px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>My homework for the first week of Dynamic Web Development is over here: <a href=\"http:\/\/itp.indiamos.com\/DWD\/helloworld.php\">Hello, World<\/a>. I reused the <acronym title=\"cascading style sheets\">CSS<\/acronym> from <a href=\"http:\/\/itp.indiamos.com\/blog\/2008\/09\/15\/commlab-homework-week-1\/\">CommLab week 1<\/a> and made absolutely no modifications to the &#8220;hello, world&#8221; <acronym title=\"hypertext preprocessor\">PHP<\/acronym> from the instructions. So, sue me. <!--more-->I think the point was to make sure we all know how to upload files and have got our permissions set up correctly.<\/p>\n<p>One thing I did not copy from the instructions we got in class was the fucked-up sample <acronym title=\"hypertext markup language\">HTML<\/acronym>, which was something like this:<\/p>\n<blockquote><p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;&lt;?=$pageTitle?&gt;&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;b&gt;One paragraph&lt;\/b&gt;<br \/>\n&lt;p&gt;<br \/>\nAnother paragraph<br \/>\n&lt;p&gt;<br \/>\nThird paragraph<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p><\/blockquote>\n<p>What is with <acronym title=\"Interactive Telecommunications Program\">ITP<\/acronym> teachers and lazy-ass <acronym title=\"hypertext markup language\">HTML<\/acronym>? Spencer did the same thing, using &lt;p&gt; tags to &#8220;put a little space between&#8221; stuff. Guys. Guys. <em>Guys.<\/em> Ever heard the term <i>well-formed<\/i>? Ever heard the term <i>semantic<\/i>? <acronym title=\"hypertext markup language\">HTML<\/acronym> is so fucking <em>not difficult<\/em>; why not just do it correctly instead of teaching a roomful of people shitty habits?<\/p>\n<p><span style=\"font-size:smaller;color:#666;\">Photo: <a href=\"http:\/\/www.flickr.com\/photos\/emerym42\/2614607486\/\">&#8220;Hello World&#8221;<\/a> by Mark Emery Photography; <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc\/2.0\/deed.en\">some rights reserved<\/a>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My homework for the first week of Dynamic Web Development is over here: Hello, World. I reused the CSS from CommLab week 1 and made absolutely no modifications to the &#8220;hello, world&#8221; PHP from the instructions. So, sue me.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[29,27,4,28,22,10],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3qY10-6H","_links":{"self":[{"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/posts\/415"}],"collection":[{"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/comments?post=415"}],"version-history":[{"count":12,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/posts\/415\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/posts\/415\/revisions\/614"}],"wp:attachment":[{"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/media?parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/categories?post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itp.indiamos.com\/blog\/wp-json\/wp\/v2\/tags?post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}