i do not know if file() can be used with files on remote servers.
fopen() can, if this feature is enabled in php.ini.

Regards Michael

"Roman Duriancik" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> I have this code :
>  $text = file("http://www.hokej.sk/spravy/?id=16159";);
>   echo count($text);
>   for ($i=0;$i<count($text);$i++):
>        echo $text[$i];
>   endfor;
> when in file commnad i insert page from local net or our web server this
> script run correctly but if i insert page from internet i have this error
> event
> Warning: php_hostconnect: connect failed in
> d:\programovanie\php\ftp\skuska.php on line 2
> Warning: file("http://www.hokej.sk/spravy/?id=16159";) - Bad file
> in d:\skuska.php on line 2

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to