Jump to content

Using includes


ferret219

Recommended Posts

When I use includes on my site, I have usually had the conf.php file in the same folder as the web page which will be using it and everything has worked fine, but when I have tried to tidy up my folder structure and put all of the includes in the same folder, the page gives me an error. The code which I am using is below.

 

include("/../includes/conf.php");

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/57836-using-includes/
Share on other sites

If there are no errors, then you can assume that the relative path to the include file is correct.  If it isn't 'pulling the variables' then there's something wrong with your code, e.g. the variables are wrongly defined, the variable names don't match your expectations (spelling, case, etc.)  In the absence of visible code, there isn't much more anyone can do.

Link to comment
https://forums.phpfreaks.com/topic/57836-using-includes/#findComment-286599
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.