Forum Moderators: coopster
I chmod -R 777 this dir /var/www/html/site.com/images/
I'm getting this PHP error:
Warning: Unable to create '/var/www/html/site.com/images/': Is a directory in blah
From this code snippet:
if(is_uploaded_file($_FILES['formbigpic']['tmp_name'])) {
$uploaddir="/var/www/html/site.com/images/";
$file2write=$uploaddir.$_FILES['name'];
copy($_FILES['formbigpic']['tmp_name'], $file2write);
print("success!");
exit;
}
Anyone see the 'gotcha'? I've checked the 'common pitfalls' etc in the manual and cannot work out why it does this?
Many thanks!
Nick
Edited cos I was BAD and dropped my url accidently. Sorry Jatar!
[edited by: Nick_W at 1:13 pm (utc) on June 13, 2003]