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';

Reply via email to