[PHP] filemtime function not working

2001-06-24 Thread Carmen Gene
Can anyone out there explain why: ?php // $path = /path/to/some/php_file/or/$PHP_SELF/; print IThis page last modified on ; $LastMod = filemtime(/var/www/html/WebAps/phpRSVP2/rsvp.php); print date(l, F j, Y - g:ia,$LastMod) . /I\n; ? Returns : This page last modified on Wednesday,

Re: [PHP] filemtime function not working

2001-06-24 Thread Rasmus Lerdorf
You should check for errors from filemtime(). Looks to me like it returned false and not an actual timestamp. Probably a permission issue, or perhaps you got the path wrong. -Rasmus On Sun, 24 Jun 2001, Carmen Gene wrote: Can anyone out there explain why: ?php // $path =

Re: [PHP] filemtime function not working

2001-06-24 Thread eschmid+sic
On Sun, Jun 24, 2001 at 03:19:52PM -0500, Carmen Gene wrote: Can anyone out there explain why: ?php // $path = /path/to/some/php_file/or/$PHP_SELF/; print IThis page last modified on ; $LastMod = filemtime(/var/www/html/WebAps/phpRSVP2/rsvp.php); print date(l, F j, Y -

Re: [PHP] filemtime function not working

2001-06-24 Thread lenar
because $LastMod == 0 .. I assume your timezone is GMT-6 ? This is because that file doesn't exist or you don't have permissions for it or something like that. lenar. Carmen Gene [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone out there explain

Re: [PHP] filemtime function not working

2001-06-24 Thread lenar
lenar [EMAIL PROTECTED] wrote in message 9h5itc$hir$[EMAIL PROTECTED]">news:9h5itc$hir$[EMAIL PROTECTED]... because $LastMod == 0 .. I assume your timezone is GMT-6 ? correction - it returns false in this case, which gets converted to 0 in date() which in turn returns seconds from unix epoch