Hi all,
I am just starting with this programming language.
I was trying to write an upload script to the server but the code is not working. Here is a sample of the code am using to upload the picture:
[PHP]
$put_file = (move_uploaded_ file($HTTP_POST _FILES['user_file]['tmp_name'],"../uploads/$HTTP_POST_FILE S['user_file']['name'];
if ($put_file){
echo "Your upload was successful";
} else {
echo "Sorry, an error occured so your file could not be uploaded";
}
[/PHP]
Please help. :)
I am just starting with this programming language.
I was trying to write an upload script to the server but the code is not working. Here is a sample of the code am using to upload the picture:
[PHP]
$put_file = (move_uploaded_ file($HTTP_POST _FILES['user_file]['tmp_name'],"../uploads/$HTTP_POST_FILE S['user_file']['name'];
if ($put_file){
echo "Your upload was successful";
} else {
echo "Sorry, an error occured so your file could not be uploaded";
}
[/PHP]
Please help. :)
Comment