Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.