For reading in and displaying a file $uri I use this short script:


<?php
$uri = 'http://www.google.de?q=test';
echo implode('',file($uri));
?>

Of course this works well for almost every website, but I have problems reading in the results of google (for instance the URI above). The error message I get is:

[07-Mar-2003 16:14:13] PHP Warning: file("http://www.google.de?q=test";) - Success in /var/www/test/getfile.php on line 20
[07-Mar-2003 16:14:13] PHP Warning: Bad arguments to implode() in /var/www/test/getfile.php on line 20


Does anyone know why this happens?

I use PHP 4.23 and Apache 1.3.26 on Debian GNU/Linux 3.0.

Jens


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



Reply via email to