Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need an alternative to ORIG_PATH_INFO or PATH_INFO

    I'm working on a site that uses ORIG_PATH_INFO for a lot of
    important reasons.
    But now the site move to a new server, and that doens't give me
    any ORIG_PATH_INFO, PATH_INFO or whatever.

    Does anyone know an alternative to that variable?
    PHP_SELF or SCRIPT_NAME does not work properly.

    Thnx in advance!

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    never mind, fixed it

    PHP Code:
    $requestPath                 $_SERVER['REQUEST_URI'];                                    // Get REQUEST_URI
    $requestPath                 substr($requestPathstrpos($requestPath'/'1));        // Strip of the base (portal name)
    $_SERVER['ORIG_PATH_INFO']     = $requestPath;                                                // Assign to ORIG_PATH_INFO 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •