PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You could only send a file name/path etc in a POST form. You wouldn't actually be uploading anything. So using that POST method you'de have to have a file already on the server named the same as the one they enter in the form, and you'de only end up moving that
to address ol4pr0: it was exec, I edited the post, thanks for pointing that out.
But, mark, i'll check over the code i'm asking about tomorrow and find out what I misread / left out of my original post to make.
One thing that this guy mentioned when trying to explain why this works to me is that some kind of temporary file is created when they submit the form and then he just relocates that temp file to a permanent directory ?
I'll talk to him next time I see him and post the outcome of our conversation, thanks for checking the post out.
however, there's a good chance, system calls (exec, shell_exec, system) could be disabled on the server.. in which case using [php_man]move_uploaded_file[/php_man] is an easier solution..