I made this script for my site so I can upload images though I am having a problem with it. I currently have my upload script in an admin folder which we can call F2 and the root Folder F1. Now the script uploads images a called items which is in a folder called images which is in the root folder so the scheme of folders looks like this
items
|
images
|
root - admin
The part of the code I am having is from this line:
copy ($_FILES['imagefile']['tmp_name'], "http://www.elarune.net/" . $folder . "/".$_FILES['imagefile']['name']) or die
The variable names are right and yes that is my site. None of the variables are blank and the error I am getting is:
Warning: copy(images/items/potion(2).png): failed to open stream: No such file or directory in /home/josh/public_html/admin/upload.php on line 74
Could not copy
Yes, the value of $folder is "images/items" and the file name is upload.php.
Thank you in advance.