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
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
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
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
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
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
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
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
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
""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
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
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
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/
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
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
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
16 matches
Mail list logo