Here is my file system.
---public_html
-------upload
-----------images(under upload)
-------uploadimage(under public_html)
-------other folder
all my html php js files are in the upload folder, i can upload image to the images folder. Is there a way i can upload the image to the uploadimage folder ( which is outside of upload folder)
here is my php code for the moving
if (file_exists("images/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"images/" . $_FILES["file"]["name"]);
echo "Stored in: " . "images/" . $_FILES["file"]["name"];
}
when i change images to uploadimage the server gives warning.