Try use absolute path reference,

I can't see your problem!?
If you have this file:
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

<[EMAIL PROTECTED]> wrote in message

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 : and must include
the txt file from

So i used for this problem <?php include("/server/path/includes/news.txt");
?> for every php file.But this works only for the

So what should i do to get the txt file in the file ?
Thank you very much for support !!!


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to