Re: include path-problem
| From: | _lallous | Date: | Mon, 10 Sep 2001 13:55:19 +0000 |
| Subject: | Re: include path-problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66734@lists.php.net to get a copy of this message | ||
Try use absolute path reference,
I can't see your problem!?
If you have this file:
/home/websitename/www/include/news.txt
whether you access it from /index2.php or /support/shop.php all the same!
You might also want to refer yourself to the "include_path" variable
configuration.
<mail@struempf.com> wrote in message
news:001201c139f6$e1d51220$0100a8c0@pentium333...
Hi
I have a problem with the include command.I want to include a txt file in a
php file.But this txt file must include in every php file on the server and
these phpfiles are in different directories.
Here is the Problem :
www.domain.com/index2.php and www.domain.com/support/shop.php must include
the txt file from www.domain.com/includes/news.txt.
So i used for this problem <?php include("/server/path/includes/news.txt");
?> for every php file.But this works only for the www.domain.com/index2.php
file.
So what should i do to get the txt file in the
www.domain.com/support/shop.php file ?
Thank you very much for support !!!
chris