title: How to receive data from ESP8266 Wifi Module using php
body: <p>I tried with sending a GET request using ESP8266 wifi module using Arduino.The module successfully responded with :</p>
  
  <blockquote>
    <p>SEND OK +IPD</p>
  </blockquote>
  
  <p>On server, I want to receive the data and write it in a text file. So i tried the following codes</p>
  
  <pre><code>&gt;parse_str( html_entity_decode( $_SERVER['QUERY_STRING']) , $out); $data= $out['data'];
  
  $fileStatus=file_put_contents('myFile.txt',$data,FILE_APPEND);
  if($fileStatus!=false){
      echo "SUCCESS";
  } else{ echo "FAIL"; }
  </code></pre>
  
  <p>But the data failed to store.</p>