Jump to content

dawilson

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by dawilson

  1. Don, I'll give that a shot but I now suspect some transient effect related to running the script too soon after creating the account and uploading files. Trying to load the page now yields different and bigger problems (something to do with open_basedir apparently). Please could you let me know what the absolute path to a file in my public_html directory is so that I can fix the new problem? Come to think of it, if this info is somewhere else in the support section, I'd love to know where - I searched but couldn't find it. Thanks again, Dave
  2. I've moving my domains from another server and find that one of my trivial PHP scripts is generating an error. Can anyone tell me what's up with this and how to correct the problem? I would rather not hardcoded the document root directory but will do this if necessary. The script generates a file modification timestamp and is: <?PHP echo "Page was last modified on: " . date ("F d Y H:i:s.", filemtime($_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])); ?> It generates error: filemtime(): Stat failed for /usr/local/apache/htdocs/~fourcc/intro.php (errno=2 - No such file or directory) in /home/fourcc/public_html/intro.php on line 264. where intro.php is in my public_html directory and is the file which contains the script. It almost looks as if $_SERVER['DOCUMENT_ROOT'] is returning the wrong path? Thanks in advance for any suggestions. Regards, Dave Wilson
×
×
  • Create New...