[development] creating a file - path problems

Lee Rowlands leerowlands at rowlands-bcs.com
Fri Nov 6 05:20:41 UTC 2009

On Thu, 05 Nov 2009 22:06:55 -0500, Jeff Greenberg <jeff at ayendesigns.com>
> me  sites/default/files  which is great if I have something to append it 
> to, such as /users/myusername/public_html/mydomain.com/drupal   but in 
> looking at the descriptions of the various file api functions/vars, I 
> don't seem to see one that does that as opposed to checking this, 
> verifying that, etc.
The PHP global variable $_SERVER['DOCUMENT_ROOT'] should tell you where
your site lives in the file system for Apache.

More information about the development mailing list