Apache 2 and change of code
I have seen that Apache 2 changed rules and I have to define new .htaccess.
Do you have any idea how to make correct path.
I used to have code to define path like:
$_PATH1 = "http://" . $_SERVER['HTTP_HOST']."/";
Now is not working anymore.
DOCUMENT_ROOT would normally give you the physical location of the file and REQUEST_URI would give you the web location or the exact web path of the file.
Why than it does not detect footer.php? Is issue in the code?
Originally Posted by chrisranjana
It used to work in the past versions.
can you echo the DOCUMENT_ROOT and REQUEST_URI in your php file and let me know what values it contained ?
Hi value is http://www.mydomain.com/
this is the most strange as it is exact URL for my domain.
and document path is:
Only left part is that at the top it is path to call variable class like sample:
this is the most strange as it is exact URL for my domain and even document is correct root. If I go to this path it will show me file.
Last edited by toplisek; 12-02-2008 at 09:09 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)