file uploading - last modified date
- From: Ed Koren <ed@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Jul 2005 17:24:57 -0400
Hi there,
I am writing a small application to handle file uploads for an intranet. The application prompts the user if the uploaded file already exists on the server, however, I would like to give them the option to overwrite files without prompt, if the uploaded files are newer than those on the server. I know I can use filemtime() to get the timestamp for the files on the server, but what about the uploaded files? I briefly thought I had a solution by doing filemtime($_FILES['uploaded_file']['tmp_name']), but of course this gives me the last modified date of the temporary copy on the server, not the original file. I have a feeling it is impossible to do what I am trying to do, as any timestamp data is not available in the $_FILES array - if anyone can confirm this, or perhaps give me some advice, I would appreciate it very much.
Thanks,
Ed -- Koren Web Design Services www.korenwebdesign.com (304) 453 2145
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- .
- Follow-Ups:
- Re: file uploading - last modified date
- From: Janwillem Borleffs
- Re: file uploading - last modified date
- Prev by Date: Re: $_SESSION problems
- Next by Date: Re: file uploading - last modified date
- Previous by thread: $_SESSION problems
- Next by thread: Re: file uploading - last modified date
- Index(es):
Relevant Pages
|