[development] creating a file - path problems

Jeff Greenberg jeff at ayendesigns.com
Fri Nov 6 05:53:12 UTC 2009


Lee Rowlands wrote:

> The PHP global variable $_SERVER['DOCUMENT_ROOT'] should tell you where
> your site lives in the file system for Apache.
>
>
>   
Thanks, Lee. Yes, that's what I did. It seems, though, that there should 
be a Drupal function or global to avoid having:
$fn = $_SERVER['DOCUMENT_ROOT'] . '/' . $file_directory_path() . 
'/myfilename';


More information about the development mailing list