www.webdeveloper.com
Results 1 to 5 of 5

Thread: Apache 2 and change of code

  1. #1
    Join Date
    Sep 2005
    Posts
    1,636

    Question 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.

  2. #2
    Join Date
    May 2004
    Location
    chennai, tamil nadu, India
    Posts
    448
    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.

  3. #3
    Join Date
    Sep 2005
    Posts
    1,636
    Quote Originally Posted by chrisranjana View Post
    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.

  4. #4
    Join Date
    May 2004
    Location
    chennai, tamil nadu, India
    Posts
    448
    can you echo the DOCUMENT_ROOT and REQUEST_URI in your php file and let me know what values it contained ?

  5. #5
    Join Date
    Sep 2005
    Posts
    1,636
    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 10: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
  •  
HTML5 Development Center



Recent Articles