One of the problems with PHP is knowing when functions require an absolute path and when they don't.
move_uploaded_file appears to want an absolute path.
I'm doing:
Code: Select all
move_uploaded_file( $_FILES['file']['tmp_name'], $destpath );The ASP equivalent to what I want to do would be server.mappath (which realpath() is not, despite claims in the PHP manual).
Any ideas?
Many thanks