hi
i want to execute a php script on my web server when one gpio pin turns high
demo.com/pushover.php
can anyone please guide me
Thanks
run a php script on webserver
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 31
- Joined: 09 Feb 2016, 22:16
Re: run a php script on webserver
If you use a controller like domoticz you can set the gpio as a switch and make the on/off action on the controller execute the script.
Re: run a php script on webserver
hi
i want to run it directly without a controller
i want to run it directly without a controller
Re: run a php script on webserver
google for ncat (something like netcat)
It could run on your server, listening on ports, and execute programs directly
with something like
ncat --exec "/bin/bash" -l 1027 --keep-open
you could directly trigger programs
It could run on your server, listening on ports, and execute programs directly
with something like
ncat --exec "/bin/bash" -l 1027 --keep-open
you could directly trigger programs
-
- Normal user
- Posts: 320
- Joined: 15 Apr 2015, 14:17
Re: run a php script on webserver
I don't see what's the problem.
If you just add a controller like domoticz, instead of using port 8080 you can use your webserver port, you webserver can listen to a specific idx and value.
If you just add a controller like domoticz, instead of using port 8080 you can use your webserver port, you webserver can listen to a specific idx and value.
Who is online
Users browsing this forum: No registered users and 15 guests