I posted this not 24 hours ago that does this

-----Original Message-----
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: 27 August 2002 11:19
To: Rudolf Staribacher; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] include() and file() on remote files


So far as I know, Linux etc does not have any problem with a statement such
as include("http://www.yahoo.com";);

However it is fairly simple to work around in Windows, I do it all the time.
The following code will produce the same output:
<?
$fp = @fopen("http://www.yahoo.com","r";);

while(!feof($fp) && $fp) {
  echo fread($fp, 4096);
}
@fclose($fp);
?>

HTH

Ross

> -----Original Message-----
> From: Rudolf Staribacher [mailto:[EMAIL PROTECTED]]
> Sent: 26 August 2002 22:16
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] include() and file() on remote files
>
>
> the include function does not work on Win32 platforms on remote files
> (http). I faced also problems with nested!!! file function on remote files
> (http). Does anybody know, if the lack of remote access of include() and
> file() could also occure on other OS?
>
> thx,
> Rudolf
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


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




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

Reply via email to