Hi all, I'm coding out a script that has to do the following things:
- create a directory with the $fupload_name
- upload the file into that folder
Here it is the script:
<?php
if (isset ($carfile)) {
mkdir ( "/web/site/uploaded_cars/".$carfile_name, 777);
$fupload = $carfile;
copy ( $fupload, "/web/site/uploaded_cars/$carfile_name/") or
die ("Cannot upload file");
}
?>
I press Upload and I get this message:
Warning: Unable to create '/web/jpracing/uploaded_cars/README.txt/': Is a directory in /web/jpracing/testing/script.inc on line 6
Why?
Every suggestion is appreciated...!
Beppe