Questions tagged [php]

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.

Filter by
Sorted by
Tagged with
6
votes
2answers
36k views

How to install PHP 7.1

Title pretty much says all. I know about adding the stretch to get PHP 7. But it doesn't show PHP 7.1. deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi Bonus ...
12
votes
2answers
21k views

How can I install PHP 5.6 (instead of 5.4)?

I'm actually stuck with a little problem. I want to use Laravel on my pi but it requires at least PHP 5.5.9. But actually, the latest version of PHP that I am able to install (via the official ...
4
votes
3answers
53k 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! :( ...
7
votes
1answer
9k views

PHP 7.4 on raspbian

I'm trying for about 4 hours to install PHP 7.4 on my Raspberry Pi Zero W. I tried different tutorials, but I endup crashing my raspbian completly or just the installed php. With crashing I mean, I ...
2
votes
3answers
9k views

PHP + PYTHON + LIGHTTPD + Raspberry Pi GPIO to control the Robotic Arm

I was able to control one arm of an OWI-535 (Maplin) Robot Arm using GPIO pins and python programming (via L293 driver) , so I tried to do the same using a web page created in PHP. Created buttons ...
5
votes
1answer
18k views

Live video streaming embedded in a web page [closed]

I have created a web page to have both live video streaming and some button controls to control the robotic arm interfaced to the RPi GPIO pins. For button controls, I used php coding. The php coding ...
3
votes
1answer
342 views

How to display Raspberry´s local IP Adress on a HTML site?

I run raspberry with a strating webbrowser in kiosk mode and want to display the local ip-adress of my raspberry. How can I do this? I Use PHP (httpd) I tried with <?php print_r($SERVER); ?> ...
1
vote
1answer
2k views

using php_exec command to play audio on the Pi - no audio group

I'm trying to have a php script play an audio file when run shell_exec('aplay /home/andrew/www/audio/meeting-bell/medium-bell.wav') It works when I run it from the command line, but not when running ...
1
vote
1answer
5k views

How to set a permission to call a Python script from PHP?

I connected an Arduino Nano via USB to my Raspberry PI3. The Arduino is programmed to send (via serial) 16 bytes of information every 500 milliseconds. In this RPi3 I have Python, Apache2 and PHP5 ...
4
votes
4answers
31k views

E: Package has no installation candidate

I am unable to install any package using command "apt-get install". Whenever I execute above command to install any package, it shows me a common error saying E: Package <PackageName> has no ...
3
votes
4answers
5k views

Unable to install mysql

I am trying to install mysql on my pi. I've installed mysql server successfully, but get the following error when I try to run $ sudo apt-get install php5-mysql Some packages could not be ...
3
votes
2answers
230 views

Crontab not executing php scripts

My problem is that crontab is not executing my php script /home/pi/CronTabFiles/saveThermometer.php I tried a lot of things, I don't remember everyone of them but I'll list what i consider mains one. ...
3
votes
2answers
15k views

refresh chromium browser by shell script with xdotool via PHP

I want to refresh the browser, like pressing the F5 or Ctrl+F5 key on the keyboard with a shell script. I´m new in writing shell scripts so i aks you to help me with this: when I type in this into ...
3
votes
2answers
14k views

PHP-version on Raspberry Pi different in phpinfo()

I have a Raspberry Pi 2 where I want to run my backend for an application on. This needs php 5.6 to run correctly, otherwise it will just not work. I installed PHP 5.6 on this Raspberry Pi, but now I ...
-3
votes
2answers
5k views

How to develop a Plugin to read the status of the Power-LED of the Raspberry Pi 3 B by PHP [closed]

I need to develop a plugin that reads the status of the Power-LED of the Raspberry Pi 3 B and print the status of the LED on the Web-page. Please Help !!!