Write ip to arduino from web site (PHP).

yes i did not install the arduino code in php.
but it receives commands via socket_write the page in php right?
"<? Php
$ sock = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);
/ / Connects to IP and Port:
socket_connect ($ sock, "10.20.30.50", 80); "
I want to know is if he gets 0 and 1 for on and off the relay.
would have some code that would change the ip alert by socket_write the area responsible for the ip type in arduino

'}
for (int i = 0; i <6; i + +) {
EEPROM.write (i + 1, mac );

  • }*
  • for (int i = 0, i <4; i + +) {*
    _ EEPROM.write (i + 7, ip );_
    * }*
    * for (int i = 0, i <4; i + +) {*
    _ EEPROM.write (i + 11, subnet );
    * }
    for (int i = 0, i <4; i + +) {
    EEPROM.write (i + 15, gateway );
    }
    EEPROM.write (0, 0x92); "*

    understood now.?
    would also want to know how the php code to be run action?
    possibility exists?_