• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinophpRun a sample php script on pcDuino
Previous Next

Run a sample php script on pcDuino

Posted by: admin , August 7, 2014

Following the installation of lightweight webserver,  we can run a sample php script on pcDuino.

The sample script is called test.php, the code is as following:

<?php
echo exec('whoami');
?>

We then run it by:

$php test.php

test_php

It shows that the current user that running php is ‘ubuntu’, which is as expected.

Twitter:@pcDuino_NO1

Facebook: pcDuino

Tags: php

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors