I'm new to uploading images via php and was wondering how I could save this file as another name. This is so that all images that are uploaded could be unique. Appreciate the help guys!

{ 	
copy ($_FILES['imageupload']['tmp_name'], "/upload/".$_FILES['imageupload']['name']); 
} 

    [man]move_uploaded_file/man

    Just change the dest_name to be a unique name and the file will be moved (so no duplicate copies) and renamed to the new dest_name name.

      If i wanted to add the word hello in front of my destination file here how would I do it. Thta isn't what I want to do as my problem is deeper than that but if I could do that it would allow me more knowledge how to do it.

      So In my code where would i put the word "hello".

      So instead of it saving on the server as gif.gif it will save as hellogif.gif

        [man]move_uploaded_file[/man]($FILES['imageupload']['tmp_name'], 'hello'.$FILES['imageupload']['name']);

          Write a Reply...