Go to advanced search

by marco.costanza
Wed Dec 18, 2019 1:08 pm
Forum: General discussion
Topic: Run a python script from PHP
Replies: 8
Views: 428

Re: Run a python script from PHP

IOError: [Errno 13] Permission denied: '/etc/dhcpcd2.conf'
by marco.costanza
Thu Dec 12, 2019 1:25 pm
Forum: General discussion
Topic: Run a python script from PHP
Replies: 8
Views: 428

Re: Run a python script from PHP

not working
by marco.costanza
Tue Dec 10, 2019 8:41 pm
Forum: General discussion
Topic: Run a python script from PHP
Replies: 8
Views: 428

Re: Run a python script from PHP

I entered the code #!/usr/bin/python
I launched the command sudo chmod u+x,g+x sample.py

$result = shell_exec('/usr/bin/python /home/pi/script/sample.py');
echo $result;

But not working
by marco.costanza
Fri Dec 06, 2019 8:42 am
Forum: General discussion
Topic: Run a python script from PHP
Replies: 8
Views: 428

Run a python script from PHP

Hi everyone, I'm a new member. Sorry if I'm wrong section. I need to start a python script using PHP. In the past I performed these functions with exec, shell_exec and system. With the raspberry I have problems, they told me that I have to edit the file / etc / sudoers, I tried to insert various dir...
by marco.costanza
Thu Dec 05, 2019 11:14 am
Forum: Italiano
Topic: Eseguire uno script python da PHP
Replies: 0
Views: 254

Eseguire uno script python da PHP

Ciao a tutti, sono un nuovo iscritto. Scusate se sbaglio sezione. Ho l'esigenza di avviare uno script in python mediante PHP. In passato ho eseguito queste funzioni con exec, shell_exec e system. Con il raspberry ho problemi, mi hanno detto che devo editare il file /etc/sudoers, ho provato ad inseri...

Go to advanced search