Hey all,
I've just came and working on a new job site doing some programming and they are having some troubles with uploading files on their server and I can't seem to figure out where the problem lies.
if (!(file_exists($img_source) && is_file($img_source))){
echo "Image Source Error. Uploaded file not found.<br>";
return false;
}
*img_source = tmp uploaded file;
I use this an it registers that the file does in fact exisit there for it was uploaded.
if($fp = move_uploaded_file($img_source, $img_dst)){
print "Copy worked";
}else{
print "Copy failed";
}
I use this code and it returns that the copy worked (I've also tried the "copy command")
After this the file doesn't appear in the right location (as far as I know any location) but the tmp file still exisit. I don't have a clue why this is not working. Any advice would be a great help.
ohhh, also the source and dest path are
source = /tmp/phpnXbDdz
dest = /home/sites/site25/web/img_news/img_11.gif
I'm not sure if that'll matter but thought I'd include all the info.