title: How to Get a Webpage's contents without CURL?
body: <p>I need to get webpage's content ,I cant use Curl as it is not enabled.I tried the below code But it is not working.</p>
  
  <pre><code>$opts = array(
    'http'=&gt;array(
      'method'=&gt;"GET",
      'header'=&gt;"Accept-language: en\r\n" .
                "Cookie: foo=bar\r\n"
    )
  );
  
  $context = stream_context_create($opts);   
  
  $fp = fopen($_GET['url'], 'r', false, $context);
  if($fp)
  fpassthru($fp);
  fclose($fp);
  exit;
  </code></pre>
  
  <p>The code produce an error </p>
  
  <pre><code>Warning: fopen(http://www.google.com/search?&amp;q=site:www.myspace.com+-intitle:MySpaceTV+%22Todd Terje%22) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request 
  </code></pre>