How to use php file_get_contents with ESP8266
To process the request by php, you must send valid HTTP response. The browser tolerates too much.

String webpage = "HTTP/1.1 200 OK\r\nConnection: close\r\n\r\n";
webpage += "&lt;div id='div1'&gt;Hello&lt;/div&gt;";