Re: filemtime function not working
| From: | lenar | Date: | Sun, 24 Jun 2001 20:43:19 +0000 |
| Subject: | Re: filemtime function not working | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55052@lists.php.net to get a copy of this message | ||
""lenar"" <lenar@dotcom.ee> wrote in message news:9h5itc$hir$1@w153.z064000151.sjc-ca.dsl.cnc.net...
> 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 and can be different from place to place depending on your timezone
settings. in this case gmdate() should return 'jan 1 1970 00:00'.
lenar.
> This is because that file doesn't exist or you don't have permissions for it or
> something like that.
> lenar.
"Carmen & Gene" <carmgene@swbell.net> wrote in message news:3B364B68.3A047BE3@swbell.net...
> Can anyone out there explain why:
>
> <?php
> // $path = "/path/to/some/php_file/or/$PHP_SELF/";
> print "<I>This 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, December 31, 1969 - 6:00pm
> after being run through the above date() params?
>
> Obviously, the file HAS been modified ever so slightly since that date
> in history!!
>
> Thanks,
>
> Gene Kelley
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net