RE: [PHP] fopen()
| From: | David Freeman | Date: | Sat, 20 Jul 2002 00:25:29 +0000 |
| Subject: | RE: [PHP] fopen() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108605@lists.php.net to get a copy of this message | ||
> if (!($fc =
>
> fopen("http://www.google.com/search?hl=en&&ie=ISO-8859-1q=asd
> f", "r"))) {
> echo "couldnt open file.";
> } else {
> $content = fread($fc,10000000);
> }
> echo "$content\n";
>
> Why doesn't this work?
What happens if you just type:
http://www.google.com/search?hl=en&&ie=ISO-8859-1q=asdf
Into a web browser? Does it load what you expected to load?
CYA, Dave