I am trying to upload images to my web server. Since that it is a free web server, instead of visiting its ftp server directly, I could only use one given software to connect to FTP server.
My problem is that I am trying to upload images to my server using "move_uploaded_file" function. Below are the codes:
move_uploaded_file($_FILES["file"]["name"],
"/www/99k.org/1/2/3/123shop/product_images/" . $_FILES["file"]["name"]);
I was given a error that permission denied. My question is that, is it possible to use move_uploaded_file function to upload files to a server that requires username and password
check for folder permissions, and you should be uploading temp file, like
move_uploaded_file($_FILES["file"]["tmp_name"],
"/www/99k.org/1/2/3/123shop/product_images/" . $_FILES["file"]["name"]);
and check max_post_size and upload_max_size to big enough to upload. some useful solutions available here: