SV: [PHP-WIN] Including files in php
| From: | Jesper Palmqvist [Talarforum i Skandinavien AB] | Date: | Thu, 01 Apr 2004 05:12:43 +0000 |
| Subject: | SV: [PHP-WIN] Including files in php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23332@lists.php.net to get a copy of this message | ||
Or simply use '\\'
include("..\\folder1\\includefile.php");
Or just include("\\folder1\\includefile.php");
/Jesper
-----Ursprungligt meddelande-----
Från: Jim MacDiarmid [mailto:jim.macdiarmid@comcast.net]
Skickat: den 31 mars 2004 18:34
Till: php-windows@lists.php.net
Ämne: [PHP-WIN] Including files in php
I seem to be having trouble with including files into my pages. I like
to structure my site into folders so that I can keep the root folder
relatively clean and only necessary files go in there. For example:
\DocRoot\
\folder1\
\folder2\
\folder3\
-- etc --
I've noticed that in order to include a files into pages or call other
files, I have to specify the path of the folder in my php.ini include
directive. I've tried to specify the path of the file in the include()
or require() statement, such as
include("..\folder1\includefile.php");
Or just include("\folder1\includefile.php");
but that doesn't seem to help. Is there an easier way to this?
Thanks a bunch,
Jim
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php