SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    436
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    $_SERVER['PATH_INFO'] and $_SERVER['PORIG_PATH_INFO']

    what's the difference between them? how to use them. i [ICODE]print_r($_SERVER).[/ICODE] there are no result of $_SERVER['PATH_INFO'] and $_SERVER['PORIG_PATH_INFO'] .why? how to enable it.i have read the php manual about them, but still don't understand . expect someone can explain them.thank you

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Location
    nowhere
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See "URI scheme" for more info about the different parts of a URI.

    I'm not sure if you can use PATH_INFO to URL rewriting. I read this on: URL rewriting using PATH_INFO | Aspektas Blog

    'PATH_INFO'
    Contains any client-provided pathname information trailing the actual script filename but preceding the query string, if available. For instance, if the current script was accessed via the URL
    Code:
    http://www.example.com/php/path_info.php/some/stuff?foo=bar
    , then $_SERVER['PATH_INFO'] would contain
    Code:
    /some/stuff
    'ORIG_PATH_INFO'
    Original version of 'PATH_INFO' before processed by PHP.
    Last edited by 3.grosz; Apr 12, 2011 at 16:55. Reason: corr


Bookmarks

Posting Permissions

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