You are here: file uploading - last modified date « All PHP « IT news, forums, messages
file uploading - last modified date

Posted by Ed Koren on 07/25/05 00:24

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 =----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация