I would like to set the source of a remote webpage into a variable. Would this be possible with PHP?
Thanks in advance.
Thanks in advance.
iostream.h said:I would like to set the source of a remote webpage into a variable. Would this be possible with PHP?
Thanks in advance.
$pageHtml = file_get_contents("http://www.google.com");
<?php
$c = curl_init("http://www.page.com");
curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
$page = curl_exec($c);
curl_close($c);
print $page;
?>
superbovine said:the page is encrypted is my guess.
just add https:// in the curl statement
kingjr3 said:I would ask what URL are you trying to read and which method you are trying?