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:
Path variable
$_PATH1 = "http://" . $_SERVER['HTTP_HOST']."/";
and
<?PHP include($_PATH1.'en-US/footer/'."footer_si.php");?>
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.
Originally Posted by
chrisranjana
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?
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:
http://www.mydomain.com/en-US/footer/footer_si.php
Only left part is that at the top it is path to call variable class like sample:
<?PHP
error_reporting(0);
require_once("../../includes/myclassvariables.php");
?>
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 .
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks