Hi everybody,
There are some pages I would like to extract links from but I can't access the page using the following:
ini_set('php.user_agent', 'Mozilla/5.0');
$url = "http://www.google.com/search?q=php";;
$fp = fopen($url,"r");
$buffer = fread($fp,1000000);
echo $buffer;
Also, what is the best number to use when allocating Buffer space for a URL?
Is 1000000 too much?
Thanks.
-Gohaku


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to