RE: [PHP] "last modified" code not working on new server :-(
| From: | Timothy J. Luoma | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | RE: [PHP] "last modified" code not working on new server :-( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102656@lists.php.net to get a copy of this message | ||
On Tue, 18 Jun 2002, Martin Towell wrote:
> first time through the loop, $newFile is set to "" - so you're trying to
> stat a file called ""
Well I thought that was just initializing the variable so that it was set
to be empty.
> I dunno why it worked on your old server - maybe you have a different error
> reporting level ??
Good question :-)
> put a check in to see if $newFile != "" and change the if ($newDate <
> $fileDate) { line to suit too
Thanks for the suggestion.... I actually found something I think is
easier, in that I changed the $newFile definition (init) to be
$newFile=".";
And that seems to do the trick
Thanks for your time
TjL