RE: [PHP-WIN] how to do an html include on Windows?

From: Date: Wed, 28 Aug 2002 21:12:25 +0000
Subject: RE: [PHP-WIN] how to do an html include on Windows?
Groups: php.windows 
Request: Send a blank email to php-windows+get-15577@lists.php.net to get a copy of this message
I posted this not 24 hours ago that does this -----Original Message----- From: Ross Fleming [mailto:r.fleming@clara.co.uk] Sent: 27 August 2002 11:19 To: Rudolf Staribacher; php-windows@lists.php.net 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:r.staribacher@hypercms.com] > Sent: 26 August 2002 22:16 > To: php-windows@lists.php.net > 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

« previous php.windows (#15577) next »