Jump to content

including files from root or fixed path


emtec

Recommended Posts

i have a file, an config file, wher i want to include several other files.

now i want to include this config file on several pages on very different locations.

 

now how can i include the files in the config file so that the file path is correct, regardless from what page the config file is includded.

 

how can i do this?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/137743-including-files-from-root-or-fixed-path/
Share on other sites

already tried that

 

gives me this error

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\wamp\www\cmslabs\versie0.6\inc\configfiles\addadmin.php on line 5

Warning: include(http://127.0.0.1/cmslabs/versie0.6/inc/config.php) [function.include]: failed to open stream: no suitable wrapper could be found in C:\wamp\www\cmslabs\versie0.6\inc\configfiles\addadmin.php on line 5

Warning: include() [function.include]: Failed opening 'http://127.0.0.1/cmslabs/versie0.6/inc/config.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\cmslabs\versie0.6\inc\configfiles\addadmin.php on line 5

 

 

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.