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
It shows that the current user that running php is ‘ubuntu’, which is as expected.
Twitter:@pcDuino_NO1
Facebook: pcDuino
Leave a Reply
You must be logged in to post a comment.