Advertisement

08.12.2005 at 11:34AM PDT, ID: 21525600
[x]
Attachment Details

How to get Server Root file path ?

Asked by aniston in PHP Scripting Language

Tags: , , , ,

Is there any way I can retrieve the server's root file path from within my PHP 5.0 scripts?  It seems a bit odd such a feature would not be available for the language.  Im using Windows 2003 Server IIS6 at work.

$_SERVER['DOCUMENT_ROOT'] does not work for me.

ThanksStart Free Trial
[+][-]08.12.2005 at 11:37AM PDT, ID: 14663503

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: php, path, get, root, server
Sign Up Now!
Solution Provided By: snoyes_jw
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.12.2005 at 11:38AM PDT, ID: 14663506

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.12.2005 at 11:51AM PDT, ID: 14663629

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.12.2005 at 12:34PM PDT, ID: 14664035

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32