PHP move_uploaded_file() error on server

I using following code and it is successfully uploading files on my local server and working fine.

$data = move_uploaded_file($_FILES["file"]["tmp_name"], "images/" . "file" ); if( $data ) { echo "Successfully uploaded"; } else { echo "Not uploaded"; }

But when I used this code on my online server it is not working.
How can I know that what is the problem ? is that server problem?

Changed status to publish
Add a Comment