error while reading google-search-results
| From: | Jens Lehmann | Date: | Fri, 07 Mar 2003 15:35:20 +0000 |
| Subject: | error while reading google-search-results | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138643@lists.php.net to get a copy of this message | ||
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