{"id":461,"date":"2019-02-06T21:33:19","date_gmt":"2019-02-07T05:33:19","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=461"},"modified":"2019-03-04T21:10:08","modified_gmt":"2019-03-05T05:10:08","slug":"php","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/php\/","title":{"rendered":"PHP"},"content":{"rendered":"\n<p>PHP processes webpage requests via a web browser and it does it dynamically depending on circumstances that can be programmed. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> sudo apt install php php-mbstring -y<\/pre>\n\n\n\n<p>To test if php installation was successful a test web-page with php commands can be created. First navigate to the directory \/var\/www\/html\/ and delete the file index.html and create a new file with name index.php<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html<br>sudo rm index.html<br>sudo touch index.php<br>sudo nano index.php<\/pre>\n\n\n\n<p>in the file include the line:<br>echo &#8220;&lt;?php phpinfo ();?>&#8221; > \/var\/www\/html\/index.php<br>save the file and on the raspberry pi web browser enter localhost for the webpage and this should open the PHP Test Web-page<\/p>\n\n\n\n<p>A list of php commands is listed on http:\/\/php.net\/urlhowto.php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP processes webpage requests via a web browser and it does it dynamically depending on circumstances that can be programmed. sudo apt install php php-mbstring -y To test if php installation was successful a test web-page with php commands can be created. First navigate to the directory \/var\/www\/html\/ and delete the file index.html and create &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/php\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;PHP&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":261,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-461","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=461"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/461\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/261"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}