{"id":37,"date":"2008-09-02T20:01:34","date_gmt":"2008-09-03T00:01:34","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=37"},"modified":"2008-09-02T20:01:34","modified_gmt":"2008-09-03T00:01:34","slug":"12-things-you-need-to-know-about-php","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/09\/02\/12-things-you-need-to-know-about-php\/","title":{"rendered":"12 things you need to know about PHP"},"content":{"rendered":"<p>Are you still thinking that <a rel=\"nofollow\" href=\"http:\/\/php.net\/\">PHP<\/a> is an web-only language or is &#8220;not a real language&#8221;? Well, that used to be true with <a rel=\"nofollow\" href=\"http:\/\/museum.php.net\/php2\/\">PHP 2.0<\/a>, but with PHP5, it&#8217;s not so true anymore. Here are 12 things you need to know about PHP:<\/p>\n<ol>\n<li><strong>PHP is not only for the web.<\/strong> PHP used to be only a web module or a CGI script, but that has since changed, since with the <a rel=\"nofollow\" href=\"http:\/\/php.net\/features.commandline\">PHP CLI<\/a> and the <a rel=\"nofollow\" href=\"http:\/\/gtk.php.net\/\">PHP-GTK2 binding<\/a>. See #3 and #4.<\/li>\n<li><strong>PHP is a real language.<\/strong> Despite the myths, PHP is an actual programming language. This is a very bad myth, since when someone asks for help on PHP in a forum or a mailing list, they will get a reply like &#8220;get a real language like C&#8221;. PHP is just as real as any other programming language.<\/li>\n<li><strong>PHP can be used to write command line (DOS\/Bash) scripts.<\/strong> Using the <a rel=\"nofollow\" href=\"http:\/\/php.net\/features.commandline\">PHP CLI<\/a>, one can write command line PHP scripts just like C or Java.<\/li>\n<li><strong>PHP can be used to write graphical applications.<\/strong> Using the <a rel=\"nofollow\" href=\"http:\/\/gtk.php.net\/\">PHP-GTK2 binding<\/a>, one can write graphical PHP applications.<\/li>\n<li><strong>PHP can be used to write OpenGL applications.<\/strong> Although this appears to be experimental, one can actually write applications that use OpenGL using <a rel=\"nofollow\" href=\"http:\/\/sourceforge.net\/projects\/phpopengl\/\">php-opengl<\/a>.<\/li>\n<li><strong>PHP is not a language with security holes.<\/strong> Most cases of PHP and bad security are because of poorly written scripts that rely on insecure programming practices (such as register_globals).<\/li>\n<li><strong>PHP is not a languang without OOP (object oriented programming).<\/strong> Read <a rel=\"nofollow\" href=\"http:\/\/php.net\/zend-engine-2.php\">PHP&#8217;s page on PHP5 object oriented programming<\/a> &#8211; you will see that it is like most other OOP implementations.<\/li>\n<li><strong>PHP is not a typeless language.<\/strong> Despite rumors, PHP is a typed language (even though it is not strongly typed). See <a rel=\"nofollow\" href=\"http:\/\/php.net\/manual\/en\/language.types.php\">PHP&#8217;s types page<\/a> for more info.<\/li>\n<li><strong>PHP is a free and open source language.<\/strong> The PHP interpreter is released under the <a rel=\"nofollow\" href=\"http:\/\/php.net\/license\/3_01.txt\">free PHP License<\/a>. If you don&#8217;t like the PHP License version, then use the <a rel=\"nofollow\" href=\"http:\/\/www.roadsend.com\/\">LGPL&#8217;d version by Roadsend PHP<\/a>.<\/li>\n<li><strong>PHP can be used to write web robots (bots).<\/strong> Using <a rel=\"nofollow\" href=\"http:\/\/php.net\/curl\">cURL<\/a>, PHP&#8217;s built-in www functions or <a rel=\"nofollow\" href=\"http:\/\/www.phpclasses.org\/browse\/package\/3.html\">the http class<\/a>, one can write web robots with PHP too.<\/li>\n<li><strong>PHP is not an ancient language.<\/strong> It is fairly modern, and is 4th generation too.<\/li>\n<li><strong>PHP is not useless.<\/strong><\/li>\n<\/ol>\n<p>If you found this article helpful or useful, please help Compdigitec by spreading the word or by leaving a comment. Don&#8217;t forget to <a href=\"\/labs\/feed\/\">subscribe<\/a> to Compdigitec Labs!<\/p>","protected":false},"excerpt":{"rendered":"<p>Are you still thinking that PHP is an web-only language or is &#8220;not a real language&#8221;? Well, that used to be true with PHP 2.0, but with PHP5, it&#8217;s not so true anymore. Here are 12 things you need to know about PHP: PHP is not only for the web. PHP used to be only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[178,179,864],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}