upload file problems
| From: | Jerry Lake | Date: | Mon, 12 Mar 2001 18:08:57 +0000 |
| Subject: | upload file problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43509@lists.php.net to get a copy of this message | ||
Using this code
<snip>
<?php
if (is_uploaded_file($userfile)) {
echo $userfile;
copy($userfile, "/www/workbox/htdocs/audio");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
?>
</snip>
I keep getting the following error. the directory exists and is chmoded to
777, what am I doing wrong ?
Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in
/www/workbox/htdocs/upload.php on line 4
Jerry Lake - jerryl@europa.com
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com