hiii.. am new in php... i want to move an uploaded file to a directory in flash media server..plz help me vth the php code to do dat...giving dir path in move_uploaded_file() is not working...thanks in advance...
move_uploaded_file is the right function...be sure to use the right filename, destination. and don't forget you need the rights to write the file... check http://de.php.net/manual/de/function.move-uploaded-file.php for more information!
Hello, Before uploading a file in a web server..you have to make sure to change the permission of that the folder where you upload your images or files. To change the permission through ftp: login to the ftp and right click on the folder whose permission you need to change.. change the permission to 777 Now here is code for the upload: $uploaddir='../yourfoldername; if(is_uploaded_file($_FILES['file']['tmp_name'])) { copy($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name']); } PHP: