Results 1 to 9 of 9
May 11, 2009, 07:44 #1
- Join Date
- Apr 2009
- 0 Post(s)
- 0 Thread(s)
best way to deal with includes file paths
I need to include a file into some other files that are in different directories.
I have made a config_php file that contains a defined variable BASE_URI which the path to the root folder of my webiste.
The problem is to include the config_php the relative path for the varies from page to page (pages in different folders).
Should i use an absolute path to that file.or there is a best way?
PS:When i try to use absolute path in localhost i get an error:
"URL file-access is disabled in the server configuration "
How to change that?