Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PATH_TRANSLATED Frustrations

Discussion in 'General Discussion' started by niatech, Nov 27, 2010.

  1. niatech

    niatech Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    I have an older CPanel server with Apache 1.3.37 & PHP 4.4.7. And PATH_TRANSLATED returns as follows:

    http://www.somedomain.com/index.php/testing

    PATH_TRANSLATED = /home/someuser/testing

    I have a newer server with Apache 1.3.47 & PHP 4.4.9 and PATH_TRANSLATED = SCRIPT_FILENAME (/home/someuser/public_html/index.php).

    Anyone have any idea on how to make this work as it did before?

    I tested with Apache 2.2.x and PHP 5.2.14 and that did not work either.

    Oddly enough, in WAMP on my local desktop (Apache 2.2.x & PHP 5.3) PATH_TRANSLATED returns as expected (/home/someuser/testing).

    Any help would be greatly appreciated!

    Thanks!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice