Jump to content

Help with including a php file


robsim

Recommended Posts

Hello,

 

I'm having problems with including a php file into another. Suppose I have a file in a directory "down". The file that I'm trying to include is located in the directory above ("up"). So I write

include("../filetoinclude.php")

. The problem is that filetoinclude.php has its own includes and now thinks the files are in the "down" directory and not in the "up". Is there any workaround to this, or do I have to specify full paths to files in the filetoinclude.php? Sorry if this isn't too clear...

Link to comment
https://forums.phpfreaks.com/topic/198089-help-with-including-a-php-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.