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 <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>  

__________________________________________________
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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to