Control Relay Using The GPIO Pins On Raspberry Pi With PHP and Control It Over Web.
PHP stands for “PHP: Hypertext Preprocessor“, It’s a server side scripting language. It means that the PHP code is executed once (each time the page is requested) by the server and cannot be seen by the client. I used this language because it’s the most popular (and that’s the only one I know) but you have to know that they are other server side languages like Python, Ruby, Lua, Perl, … However, I don’t know if the functions we are gonna use have their equivalents in these languages.
1.) Raspberry Pi
2.) Some Jumper Wires . Male to Male And Female to Male .
3.) Relay .
4.) LAN Cord.
6.) Power Adapters For Pi And Relay Board (If Required ) .