Re: Please Help Me! thanks!!
| From: | Denny Suvanto | Date: | Mon, 12 Nov 2001 06:35:17 +0000 |
| Subject: | Re: Please Help Me! thanks!! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14245@lists.php.net to get a copy of this message | ||
Try using fsockopen() function :
$file = fsockopen ("www.yahoo.com", 80, $err_num,
$err_msg, 30);
You can find more informations about this fuction in
http://www.php.net/manual/en/function.fsockopen.php
May it help you.
Andy
www.mediahostnet.com
--- G <garbage_center@hotmail.com> wrote: > Hello! i
would like to useing fopen() fuction to
> open the other Url,
> but i am using a shared server now. When i useing
> fopen() or file()
> fuctions, always have a error message:
>
> Warning: php_hostconnect: connect failed in
> /usr/xxx/xxx/xxx/html/test.php
> on line 3
>
> Warning: file("http://www.yahoo.com") - Bad file
> descriptor in
> /usr/xxx/xxx/xxx/html/test.php on line 3
>
> How can i do?have any other fuctions can do that?
> Thank You Very Much!!
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-db-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com