sorry If I do not use curl function, is it possible to use the following code to open the url???
<?php
$my_file = file("http://www.google.com/");
$fp = fopen($my_file, "r") or die("OPEN");
while (! feof($fp)){
fread($fp, 1024) or die("READ");
}
fclose($fp) or die("CLOSE");
?>
after I run the above code I receive the following message :
Warning: file(
http://www.google.com/): failed to open stream: Bad file descriptor in c:\program files\easyphp1-7\www\cmd\grabber.php on line 3
OPEN
what 's wrong ??