Re: Strange url include problem
| From: | Jason Wong | Date: | Mon, 01 Jul 2002 15:19:48 +0000 |
| Subject: | Re: Strange url include problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104678@lists.php.net to get a copy of this message | ||
On Monday 01 July 2002 23:14, Leon Mergen wrote:
> When I do this:
>
> include
> ("http://www.google.com/search?q=test&ie=UTF-8&oe=UTF8&hl=nl&lr=");
>
> PHP returns an error:
>
> Warning: Failed opening
> '³`Q1
> î¶ç=Ç2-HeÅhttp://www.google.com/search?q=test&ie=UTF-8&oe=UTF8&hl=nl&lr='‚3g~3\9ØÁèsÅ
> for
> inclusion (include_path='.:/php/includes:/usr/share/php') in
> /home/virtual/site6/fst/var/www/html/search/reply.php on line 64
>
> This certainly makes me wonder, since that page loads perfectly in my
> browser, and http://www.google.com/ works perfectly... anyone
> knows what
> I'm doing wrong?
Probably choking on the cookie that Google is trying to send you. Try using
cURL or similar.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Schshschshchsch.
-- The Gorn, "Arena", stardate 3046.2
*/