Re: [PHP] filemtime doesn't always copy correctly

2005-11-08 Thread Richard Lynch
On Sun, November 6, 2005 7:37 am, David T. Kotchen wrote: > I am backing up a file (the path & filename of which are stored in > $original; the path & filename of the copy are stored in $bkup). I > would also like to copy the file modification time of $original, so, > after copying the file itself

[PHP] filemtime doesn't always copy correctly

2005-11-06 Thread David T. Kotchen
I am backing up a file (the path & filename of which are stored in $original; the path & filename of the copy are stored in $bkup). I would also like to copy the file modification time of $original, so, after copying the file itself, I use: touch($bkup, filemtime($original)); However

[PHP] filemtime() on Windows

2003-07-17 Thread Shawn McKenzie
I am trying to get the last modified time of an HTML file on my windows machine. The file is in a sub dir of my script dir and I can use the same path for file_get_contents() and fopen() and the path works great. $filetime = date("mdyhis", filemtime("subdir/file.html")); Always returns: 1231690

[PHP] filemtime -help

2002-12-12 Thread Mekrand
i have a problem with filemtime function, i want script print out the date of file last modified. here is code, $fp=fopen("ex.txt","r"); echo date("j F Y H:i", filemtime($fp)); fclose($fp); it turns out; 1 January 1970 02:00 everytime , i modified file, but this doesnt change, lastly i deleted and

[PHP] filemtime -help

2002-12-12 Thread Mekrand
i have a problem with filemtime function, i want script print out the date of file last modified. here is code, $fp=fopen("ex.txt","r"); echo date("j F Y H:i", filemtime($fp)); fclose($fp); it turns out; 1 January 1970 02:00 everytime , i modified file, but this doesnt change, lastly i deleted and

Re: [PHP] filemtime() error

2002-11-07 Thread Marek Kilimajer
Jule Slootbeek wrote: Hi, i'm writing a piece of code that allows me to upload the updated version of my website from the local tree, to the server. I do this by comparing the linux timestamps on the local and remote files. printing a table of the remote files works fine, but when i do it for

[PHP] filemtime() error

2002-11-06 Thread Jule Slootbeek
Hi, i'm writing a piece of code that allows me to upload the updated version of my website from the local tree, to the server. I do this by comparing the linux timestamps on the local and remote files. printing a table of the remote files works fine, but when i do it for my local files, i get an

[PHP] FILEMTIME

2002-08-08 Thread Mike Zagorski
Hello, I amusing the following PHP code.. but I want to make it so that it also displays the time in 24 hr mode and the time is +3600 seconds. (1 hour) How can I do this? Thanks Mike

[PHP] filemtime() problems

2001-11-03 Thread Ventsyslav Vassilev
Hi, i have little problems while trying to retrieve the modification time for some files. The OS is Linux Red Hat 7.1 and i'm trying to get the modification time for a MySQL table (.MYD or .MYI file). In the beginning everything was OK and the filemtime() function worked without any problems. But

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

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 expla

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: > >// $path = "/path/to/some/php_file/or/$PHP_SELF/"; > print "This page last modified on "; > $LastMod = filemtime("/var/www/html/WebAps/phpRSVP2/rsvp.php"); > print date("l, F j, Y - g:i

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: > >// $path = "/path/to/some/

[PHP] filemtime function not working

2001-06-24 Thread Carmen & Gene
Can anyone out there explain why: This page last modified on "; $LastMod = filemtime("/var/www/html/WebAps/phpRSVP2/rsvp.php"); print date("l, F j, Y - g:ia",$LastMod) . "\n"; ?> Returns : This page last modified on Wednesday, December 31, 1969 - 6:00pm after being run through the above dat

Re: [PHP] filemtime or getlastmod

2001-01-14 Thread Christian Reiniger
On Sunday 14 January 2001 17:54, Christian Binder wrote: > The only problem is, that my following script only shows one date (IMO: > of the first value (.)), and not create the date of each file. > // get unix-timestamp form each file in subdirectory > $unixdatum=getlastmod($datei[$i]); Read ag

[PHP] filemtime or getlastmod

2001-01-14 Thread Christian Binder
Hello, I would like to create a dynamic mulitple-choise - Form, in which the filenames, included in a subdirectory (e.g. imgstand) are listed as the Option-vale "value" and the modification-date of the file is shown in the HTML-page as date for selection of the user. If a user choise one or more