Re: using remote files for inclusion...

From: Date: Thu, 08 Mar 2001 21:04:53 +0000
Subject: Re: using remote files for inclusion...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5888@lists.php.net to get a copy of this message
Hi Dirk: > The PHP online-manual says, that under windows remote files can > not be used! <SNIP> > Is that the reason, why the following, won't work for me: > include("http://localhost/dynamx2html/dynalib.php"); > Is "localhost" in this context remote or not ? Using include() should work on you Win box. There are a few issues with include() & require() though. Firstly, you would be better of editing the following in your PHP.INI; include_path = "<snipped>"; UNIX: "/path1:/path2" Windows: "\path1;\path2" For example, if PHP fails, it will deliver the raw unparsed text of your script to the browser and any security information contained within will be displayed for all to see. Not good! Create a directory outside of your HTTP document path and add that to "include_path" in PHP.INI. Dump your to be included files in there and call them by; include("my_include_file.ext"); If you need any more information, feel free to ask. By the way, the PHP manual gives you plenty of information on include(). The CHM version is good too (think it's available on http://www.php.net/ ). > Any hints appreciated, > Dirk Regards Jerry.

« previous php.windows (#5888) next »