Jump to content

[SOLVED] PHP5-CGI Document Root Changeable?


Recommended Posts

Okay, so I just installed a new server with lighttpd and PHP5-CGI. All of my site's custom-coded files use $_SERVER['DOCUMENT_ROOT'] to include the required files for the site. Sadly, when I'm using PHP-CGI, it has an ending trailing slash on the document root, while my original PHP did not. This causes my scripts to be thrown off and not work properly.

 

Is there a way to change it so it does NOT include a trailing slash?

 

Examples;

With trailing slash: /home/user/public_html/

Without: /home/user/public_html

 

Thanks!

  • 2 weeks later...

Hi There, I registered just for this as I found it thru Google.

 

This is the exact problem I am having. A dev server that returns a trailing slash, and a production server that doesn't. Can you tell me what you did to resolve the issue please? I'd like the production server to return it.

 

Cheers

Aaron

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.