R: [PHP-WIN] filemtime

From: Date: Tue, 05 Sep 2000 14:57:30 +0000
Subject: R: [PHP-WIN] filemtime
Groups: php.windows 
Request: Send a blank email to php-windows+get-2425@lists.php.net to get a copy of this message
-----Messaggio originale----- Da: Ermanno Iannacci <ermannov@libero.it> A: Lista PHP <php-windows@lists.php.net> Data: martedì 5 settembre 2000 16.10 Oggetto: [PHP-WIN] filemtime >When I use filemtime under NT4, I get this results: >1) if the php file that reads the "last modified" property is in the same >directory of files being read, everything is OK. >2) if the php file is in another directory (or folder, as you wish), I get >always the timestamp for "January 1st, 1:00 AM" (I'm writing the american >format, but on my website is an italian date). > >Why? > >Thanks > ciao, I just tried the filemtime() function with something like this: echo strftime ( ' %a %d-%b-%Y, %H:%M:%S ' , filemtime ('c:\\temp\\my.txt' )) .'<br>' ; I get: Wed 30-Aug-2000, 16:47:40 that's the right date/time.. the php-script is in another directory, I'm on NT4 too (php4) and it works fine, I don't know .. HTH Giuse PS: (result of another attempt) -----> probably you misspelt the filename : doing so I get "Thu 01-Jan-1970, 01:00:00 "

« previous php.windows (#2425) next »