Go to advanced search

by justanotherstudent
Thu Aug 24, 2017 9:59 am
Forum: General programming discussion
Topic: How can i be notified after successfully executing python file from a button on a webpage?
Replies: 3
Views: 1158

Re: How can i be notified after successfully executing python file from a button on a webpage?

Have a look a the documentation for the exec function . yes i have checked, so bare with me okay...this is what i come up with <?php if (isset($_POST['LightOn'])){ exec("sudo python /home/pi/lightOn.py", $output, $return); }elseif (!$return) { echo "Success"; }else{ echo "Failed"; } ?> the $return ...
by justanotherstudent
Thu Aug 24, 2017 8:44 am
Forum: General programming discussion
Topic: How can i be notified after successfully executing python file from a button on a webpage?
Replies: 3
Views: 1158

How can i be notified after successfully executing python file from a button on a webpage?

Hello,

i have a button on a webpage that when clicked, it will run a python file.

#php code to handle it
<?php
if (isset($_POST['LightOn'])){
exec("sudo python /home/pi/lightOn.py");
}
?>

how can i be notified after successfully running the lightOn.py file?
by justanotherstudent
Thu Apr 20, 2017 12:54 pm
Forum: General discussion
Topic: STICKY: Introduce yourself!
Replies: 3654
Views: 192786

Re: Introduce yourself!

just another eternal student.
by justanotherstudent
Thu Apr 20, 2017 12:42 pm
Forum: General discussion
Topic: remot3.it free account
Replies: 0
Views: 216

remot3.it free account

for those who use remot3.it, i have a question about the 30 minutes Connection Time. what happen after 30 minutes connection time? would we able to reconnect the session?

i tried to access their support.. doesn't bring me to any page at all.

Go to advanced search