6 Nov
2009
6 Nov
'09
6:53 a.m.
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';