title: How to fetch a webpage with php curl and display that webpage html?
body: <p>i am new to php and i want to get a webpage html through the use of php curl...i am not getting the output,am just getting a white page.
  Can anyone please help?</p>
  
  <pre><code>&lt;?php 
  $url=$_POST['txturl'];
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_URL,$url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  $output = curl_exec($ch);
  echo $output;
  curl_close($ch); 
  ?&gt;
  </code></pre>