codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Run Python code remotely from browser using PHP

    2nd January 2015

    Raspberry-Pi

    Raspberrypi - Codehaven

    Everywhere I found seems so difficult to install, I put these most basic script there is….this script is great for controlling a robot from your mobile phone.

    As long as you have set up any web server (Apache or Lighttpd) then it should just work, ready for you to build on…
    Connect to this script via a web browser, ie 192.168.0.28/control.php
    that shows one link, when clicked will run a php program by reloading the page and setting a variable, when it gets posted, it will filter into an IF function and run that code. Adding forms etc can add great value to your new robotics program…..

    And then this for the button1left.py script

    Was this code snippet helpful?