configuring arduino wi-fi shield with php script

hello,

can anyone help me for synchronizing php script in wi-fi shield.
I am doing a project on switching the lights on and off with the help of arduino mega and arduino wi-fi shield. And had built the mobile app in php script so how do i do that?? please reply asap