• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeProjectYún – How to use PHP
Previous Next

Yún – How to use PHP

Posted by: Jia Qun , June 26, 2016

If you have already read about some of my projects (dashboard, web charts…), you’ve certainly noticed that I’d like to use the PHP language for developing dynamic web pages. You can use the PHP also with Arduino Yun, here’s how to do that…

First you must install the software packages. I chose to install PHP version 5, including the CLI module, that allows to call PHP scripts from the command line (you’ll understand how this can be useful when you’ll learn how to launch commands using the Bridge library!):

Now edit the webserver’s config file (/etc/config/uhttpd), uncommenting (= removing the # character at the end of the line) the php list interpreter:

Restart the webserver:

To make sure everything is working, prepare a webpage with the phpinfo() command.

Move on the SD card (cd /www/sd) and create the page:

Now with your browser check that the page is correctly rendered:

For more details,please refer to original post

http://www.lucadentella.it/en/2013/12/05/yun-utilizzare-php/

Share!
Tweet

Jia Qun

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors