I’m very new in web developing. I’m developing a website by using HTML, jQuery, JavaScript, PHP and MySql. On my website I have an option for uploading images, and I’m using this code:
move_uploaded_file(
$_FILES["file"]["tmp_name"],
"c:/wamp/www/upload/upload/" . $_FILES["file"]["name"]
);
This code is for moving the image to c:wamp/www/upload/upload/. How can I achieve this on web server after hosting my website?
simply give path of that folder.suppose the upload folder in the same directory of your uploading file script than you have to do just like that:
and if if it is out side of the script file than just use this
Hence no need to give path from root.