Re: Including a file using php //

From: Date: Tue, 15 Jan 2002 11:12:50 +0000
Subject: Re: Including a file using php //
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-15820@lists.php.net to get a copy of this message
On Tuesday 15 January 2002 12:35, you wrote: > Yes it work's on local / but how about when the file comes from a remote > server? > > ### works > <?php > $file = "one.php"; > include($file); > ?> > ### > > ### did not work at all > <?php > $file = "http://192.168.129.103/noc/chikkaps.txt"; > include($file); > ?> > ### > There are two possible reasons for this as I see it: a) You're on a Windows platform From the manual: "Note: You can't use remote files in include() and require() statements on Windows." or b) You've compiled PHP with the option --disable-url-fopen-wrapper or set allow_url_fopen to off in php.ini If the answer to option a is yes, then sorry, Harry, it wont work. -- Markus Lervik Linux-administrator with a kungfoo grip Vaasa City Library - Regional Library markus.lervik@vaasa.fi +358-6-325 3589 / +358-40-832 6709

« previous php.db (#15820) next »