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 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2004
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with "enabling" $_SERVER['PATH_INFO']

    Hi all,

    Can someone please tell me where exactly in httpd.conf i'm supposed to place AcceptPathInfo On for it to work? I've tried placing it within <Directory /> i.e.

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    AcceptPathInfo On
    </Directory>
    I've tried placing it within the following:

    <Directory "C:/Documents and Settings/.../My Documents/localhost">
    ...
    AcceptPathInfo On
    ...
    </Directory>
    and i've tried placing it in the "root" of httpd.conf. However $path = $_SERVER['PATH_INFO']; generates the error Notice: Undefined index: PATH_INFO in C:\Documents and Settings\...\My Documents\localhost\path\filename.php on line 4

    Any ideas? Thanks.

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    you could try
    $_ENV['PATH_INFO']; or
    getenv('PATH_INFO'];
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    New Coder
    Join Date
    Jun 2004
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've tried both of those and they don't seem to work. Not surprisingly, i think, since neither, like $_SERVER['PATH_INFO'] appear in the Apache/PHP configuration details shown by echo phpinfo();.

    Is it possibly a PHP configuration thing as opposed to an Apache issue.

  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

  • #5
    New Coder
    Join Date
    Nov 2002
    Location
    Wien Österreich//Vienna Austria
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    may a conflict with the savemode of php or apache.


  •  

    Posting Permissions

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