Hi there,
I am trying to setup PHP on a Raspberry Pi.
What does work: PHP is installed (' sudo apt-get install php5 '). This code is entered in ' ~/domoticz/scripts/firstexample.php '
Code: Select all
#!/usr/bin/php
<?php
phpinfo();
?>
executing the script from a CLI (eg. Putty) with (' ./firstexample.php ') gives the expected/desired result
What does not work:
Entering this code in a file ' ~/domoticz/www/secondexample.php ' :
Code: Select all
<?php
phpinfo();
?>
just results in an echo of the entered code (so not executing the code, and (thus) not displaying the outcome)
I expect that something is missing in the internal webserver.
Can someone give a (link to a) solution ?
Thanks !
Mark