Code: Select all
<?php
$url = "http://www.facebook.com/index.php";
$fh = fopen($url, 'r');
$theData = fread($fh, filesize($url));
fclose($fh);
echo $theData;
?>Warning: filesize() [function.filesize]: stat failed for http://www.facebook.com/index.php in C:\xampp\htdocs\te.php on line 5
Warning: fread() [function.fread]: Length parameter must be greater than 0 in C:\xampp\htdocs\te.php on line 5
so what the prob with above?