I have a problem with PHP.
Basically, I have a script that take a file from a form, and I want to upload it on the server.
What i do is :
function uploadXLS($file){
$target_dir = "../uploads/";
$target_file = $target_dir . $file["name"];
if(checkFile($file) == False) return null;
echo "checked";
$result = move_uploaded_file($file["tmp_name"], $target_file);
echo "move";
if($result != 1)return null;
echo "done<br>";
}
This works perfectly in localhost with Wamp, but on the server that I use (which is not mine) I the move_uploaded_file
don't work.
I don't think there is a password or something like that, it should be an "open" server. What can I do to try to fix this problem?