Louie, thanks for the reply.
No joy I'm afriad. Added the slash to the end, also put permissions to 777 on the tmp directory.
phpinfo() reports the variable not set. This is the code that actually does the copy:-
if (!@copy($the_file, $the_path . "/" . $the_file_name)) {
return("<B>ERROR</B> Upload Unsuccessful");
} else {
return("Upload Successful");
}
If I print some variables:-
print $the_file . " " . $the_path . "/" . $the_file_name;
I get the following when I try to upload.
/tmp/phpY14bvN /home/jonshaw/public_html/images/1901-2000/2000/7.JPG
For some reason, it just won't set the first part (/tmp/????) to the directory in .htaccess.
I know .htaccess works, as I put garbage in there, and I got a server error.
I guess I'll have to stick with FTP instead.