udo nano /var/www/html/gpio.php

Then copy the following into the Nano Editor:
<?php
$output = shell_exec('gpio mode '.$_GET['pin'].' out');
$output = shell_exec('gpio write '.$_GET['pin'].' '.$_GET['status']);
echo $_GET['status'];
$output = shell_exec('gpio read 1');
echo "Relay 1:".$output."<br>";
$output = shell_exec('gpio read 2');
echo "Relay 2:".$output."<br>";
$output = shell_exec('gpio read 3');
echo "Relay 3:".$output."<br>";
$output = shell_exec('gpio read 4');
echo "Relay 4:".$output."<br>";
$output = shell_exec('gpio read 5');
echo "Relay 5:".$output."<br>";
$output = shell_exec('gpio read 6');
echo "Relay 6:".$output."<br>";
$output = shell_exec('gpio read 7');
echo "Relay 7:".$output."<br>";
$output = shell_exec('gpio read 0');
echo "Relay 8:".$output."<br>";
?>

///////////////// --> raspberry pi control gpio with php

http://raspberrywebserver.com/gpio/

http://www.paulschow.com/2013/06/raspberry-pi-internet-led-control.html

https://github.com/ronanguilloux/php-gpio

http://kurup87.blogspot.fr/2014/09/raspberry-pi-gpio-led-onoff-wiring-pi.html

http://www.diverteka.com/?p=1455

http://www.diverteka.com/?p=1492

http://www.framboise314.fr/une-interface-web-simple-et-intuitive-pour-le-raspberry-pi-12/

http://www.raspberry-pi-geek.com/Archive/2014/07/PHP-on-Raspberry-Pi

http://raspberrypi.stackexchange.com/questions/7365/php-to-execute-python-scripts-for-gpio

http://samanl33t.github.io/blog/2015/07/16/home-automation-controlling-lights-the-easy-way/

http://zain.alam.tv/install-wiringpi-and-controlling-raspberrypi-gpio-pins-with-php/

https://github.com/twinone/gpio-web

http://phptrends.com/dig_in/GPIO  ------------

https://github.com/ben-duffin/PHP-GPIO

<?php print trim(`gpio -v | grep "version"`);
	print('<br>');
	print `gpio readall`;
	?>
	
	<?php 
	print('<br>');
	print trim(`uptime`); 
	print('<br><br>');
        print( trim(`ps -e | wc -l`). ' processes running.');
	print('<br><br>');
	print `free -m | head -2`;
	print('<br>');
	print `df -h | head -2`;
	print('<br>');
	print trim(`/sbin/ifconfig eth0 | grep "bytes"`);
	print('<br>');
	//print `/usr/bin/apt-get -u upgrade --assume-no`;
	?>
	
	
http://www.pp4s.co.uk/main/gs-pi-remote.html

http://www.peatonet.com/fr/raspberry-pi-y-los-pines-gpio-controlando-el-led-desde-una-interfaz-web/

http://lycee.lagrave.free.fr/isn/raspberry/ISN_TP_Web_raspberry_Pi.pdf

http://www.andre-simon.de/doku/rpi_gpio_lua/en/rpi_gpio_lua.php

https://blogs.oracle.com/javame/entry/measuring_temperature_with_raspberry_pi

https://github.com/Pi4J/pi4j				------- JAVA

http://scruss.com/blog/2013/02/02/simple-adc-with-the-raspberry-pi/

http://monirulpathan.com/afterhours/raspberry-pi-temperature-sensors/

https://learn.adafruit.com/downloads/pdf/send-raspberry-pi-data-to-cosm.pdf






