Hi
I wanted to use absolute path in includes ... If if use
http://www.site.com/inc/myfile.php it gives me error.
What's the best way to use it?
Using/Giving absolute path
Moderator: General Moderators
Re: Using/Giving absolute path
Use the absolute path to the file as it is on the file system. In general,
Code: Select all
require $_SERVER["DOCUMENT_ROOT"] . "/inc/myfile.php";Re: Using/Giving absolute path
Maybe this can help: http://php.net/manual/en/reserved.variables.server.php
Edit: tasairis was faster..
Edit: tasairis was faster..