{"id":35,"date":"2014-10-12T18:13:16","date_gmt":"2014-10-12T18:13:16","guid":{"rendered":"http:\/\/localhost:8888\/starter\/?p=35"},"modified":"2014-10-12T18:13:16","modified_gmt":"2014-10-12T18:13:16","slug":"tech-term-php","status":"publish","type":"post","link":"https:\/\/lianechan.com\/skillcrush\/2014\/10\/12\/tech-term-php\/","title":{"rendered":"Tech Term: PHP"},"content":{"rendered":"<p>When you ask a web server for a page, it\u2019s PHP\u2019s job to create it. When you browse a WordPress blog or make a post on Facebook, PHP is putting it all together.<\/p>\n<p>If you wanted a very simple PHP page to greet you every time you looked at it, it might look something like this:<\/p>\n<p><code>&lt;?php echo \u201cHi there stranger!\u201d; ?&gt;<\/code><\/p>\n<p>That would make a web page that looked like this:<\/p>\n<p class=\"code\">Hi there stranger!<\/p>\n<p>One of the reasons many people learn PHP instead of Ruby or Python is that it comes installed on pretty much every web server out there. If you happen to have a bit of web space to your name, chances are you\u2019re able to run PHP.<\/p>\n<p>A pretty typical way you\u2019ll see people working with PHP is along with Linux (an operating system), <a title=\"Web Server\" href=\"http:\/\/skillcrush.com\/2012\/07\/03\/web-server-2\/\">Apache<\/a> (a web server), <a title=\"MySQL\" href=\"http:\/\/skillcrush.com\/2012\/12\/04\/mysql-2\/\">MySQL<\/a> (a database), and PHP. This kind of setup is called LAMP.<\/p>\n<h5 class=\"cocktail-party-header\">Cocktail Party Fact<\/h5>\n<p>PHP supposedly stands for \u201cPHP: Hypertext Preprocessor.\u201d If you said \u201cHey, but that doesn\u2019t say what PHP means!\u201d then you get the point ;).<\/p>\n\t\t<div class=\"naked-social-share nss-update-share-numbers\" data-post-id=\"35\">\n\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nss-twitter\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/www.twitter.com\/intent\/tweet?url=https%3A%2F%2Flianechan.com%2Fskillcrush%2F2014%2F10%2F12%2Ftech-term-php%2F&text=Tech+Term%3A+PHP\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t<i class=\"fab fa-twitter\"><\/i>\t\t\t\t\t\t\t\t\t<span class=\"nss-site-name\">Twitter<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nss-facebook\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Flianechan.com%2Fskillcrush%2F2014%2F10%2F12%2Ftech-term-php%2F&t=Tech+Term%3A+PHP\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t<i class=\"fab fa-facebook\"><\/i>\t\t\t\t\t\t\t\t\t<span class=\"nss-site-name\">Facebook<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nss-site-count\">0<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nss-pinterest\">\n\t\t\t\t\t\t\t\t<a href=\"#\" onclick=\"var e=document.createElement('script');e.setAttribute('type','text\/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','\/\/assets.pinterest.com\/js\/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e);\">\n\t\t\t\t\t\t\t\t\t<i class=\"fab fa-pinterest\"><\/i>\t\t\t\t\t\t\t\t\t<span class=\"nss-site-name\">Pinterest<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nss-site-count\">0<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"nss-stumbleupon\">\n\t\t\t\t\t\t\t\t<a href=\"http:\/\/www.stumbleupon.com\/submit?url=https%3A%2F%2Flianechan.com%2Fskillcrush%2F2014%2F10%2F12%2Ftech-term-php%2F&title=Tech+Term%3A+PHP\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t<i class=\"fab fa-stumbleupon\"><\/i>\t\t\t\t\t\t\t\t\t<span class=\"nss-site-name\">StumbleUpon<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"nss-site-count\">0<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>When you ask a web server for a page, it\u2019s PHP\u2019s job to create it. When you browse a WordPress blog or make a post on Facebook, PHP is putting it all together. If you wanted a very simple PHP page to greet you every time you looked at it, it might look something like&#8230;<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/lianechan.com\/skillcrush\/2014\/10\/12\/tech-term-php\/\"><span>Read more<\/span> \u00bb<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-technology","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lianechan.com\/skillcrush\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}