I would like to preserve the date/time of photos I upload to a server with 
something like the following html form:

<form method="post" enctype="multipart/form-data" action="enterPhotoInfo.php">
Add Photo: <input type="file" name="photo_file" size="40" value="Add Photo"/>
<input type="submit" value="Add"/>
</form>

and the following php at the server end:

<?php

if (move_uploaded_file($_FILES['photo_file']['tmp_name'], "./temp_photo.jpg")) 
{
   print "File valid. ";
} else {


Though I would of course be happy to change them as needed to preserve the 
date stamp. I can't find even a hint of how I might be able to do this 
anywhere on the web. I don't even know if it's more of an apache question 
than a php one. 

---------------------------
James Nickerson

"Today's robots are very primitive, capable of understanding only a few
 simple instructions such as 'go left', 'go right', and 'build car'."
 --John Slade


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to