Re: Problems with the fopen() function
| From: | Matt Friedman | Date: | Sun, 11 Nov 2001 05:05:08 +0000 |
| Subject: | Re: Problems with the fopen() function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74151@lists.php.net to get a copy of this message | ||
I would try urlencoding the query-string in that url. Or put the url in
single quotes instead.
Just shots in the dark, but try it out.
M.
----- Original Message -----
From: "Tim Harvey" <timh@contactbox.co.uk>
To: <php-general@lists.php.net>
Sent: Saturday, November 10, 2001 9:44 PM
Subject: [PHP] Problems with the fopen() function
> Can somebody PLEASE help me with this problem I'm having.
>
> This is a script to search the web. It sends the parematers "q,c & i" to
the
> "SeacrhHippo" server using the fopen function. When the script executes
the
> following error messages are displayed:
>
> Warning: php_hostconnect: connect failed in /usr/home/public_html/test.php
> on line 118
> Warning:
> fopen("http://www.searchhippo.com/qxml?q=test&c=&i=","r")
> - Bad
> file descriptor in /usr/home/public_html/test.php on line 118
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>