Click to See Complete Forum and Search --> : Apache 2 and change of code


toplisek
12-02-2008, 09:16 AM
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.

chrisranjana
12-02-2008, 09:48 AM
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.

toplisek
12-02-2008, 09:52 AM
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.

chrisranjana
12-02-2008, 09:58 AM
can you echo the DOCUMENT_ROOT and REQUEST_URI in your php file and let me know what values it contained ?

toplisek
12-02-2008, 10:00 AM
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.