I am having a problem with using the move_uploaded_file. I prefer to use this as I can send the image to a folder. I am creating web page where you can submit text and and image in a form and then it will be displayed. Thus the reason for using move_uploaded_file, I can send the image to the images folder and easily retrieve it. The problem is, you must specify a destination and filename. So when you call the function or object, not sure which it is, for the second time, the first image gets overwritten cause the name of the file in the destination is the same. What do I do so that I can repeatedly use the page without overwriting images. The page that processes the form is:
$file = '\images\some.gif';
print("File uploaded: ".$file."\n");
As you can see I am in the testing phase.