|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-10 13:40 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 11:00:01 2025 UTC |
The following code fragment should be self-explanatory $dbtime=date("d-m-Y", filemtime("/var/lib/mysql/sample/DBase.ISD")); print "(Databases last updated: " . $dbtime . ")\n" Recently I moved the script to another machine, where the file named in filemtime did not exist. The result: (Databases last updated: 01-01-1970) No big deal. But maybe date() should respond to whatever filemtime() returns ( "false" according to the man page) with an error message. Cheers, Seth