A widely used, general-purpose scripting language designed for web development. This topic covers the use of PHP and how to host PHP web servers on the Raspberry Pi.
0
votes
1answer
188 views
SQLITE/PHP on Raspberry Pi
Wondering if this would be easy/possible. I know MySQL is commonly used but I want to make a sort of web server that can access the Raspberry Pi or more important an External Drive attached to it.
...
2
votes
3answers
619 views
PHP to execute Python scripts for GPIO
I found this code somewhere, that can execute Python scripts from PHP.
I've installed apache2 on the Pi and I'm able to access the PHP script. But when I press the HTML buttons, nothing happens! :(
...
0
votes
1answer
116 views
Converting two's complement hex values to binary using PHP
I'm reading x-axis accelerometer data from an IC via the I2C bus using I2C-Tools' ( specifically i2cget ) in Linux. Here is the code that is reading these values:
$OUT_X_L_A = shell_exec( 'i2cget -y ...
1
vote
0answers
63 views
How can I read and write data to a Character Device File in Linux with PHP?
I'm trying to read and write to modules on the I2C bus on a Raspberry Pi using PHP. I'm using fopen() and fskeek().
Below is the code I've been trying to use to read data coming in from the physical ...
0
votes
1answer
49 views
how can i run a php command from the prompt?
I installed the Lighttpd server with php according to this tutorial:
http://www.penguintutor.com/linux/light-webserver
the command to install php was this:
sudo apt-get install php5-common php5-cgi ...