Hi,
Im trying to do a upload form, and im getting a permission problem, i cant figure it out for my life.
$file_dir = "files/";
foreach( $HTTP_POST_FILES as $file_name => $file_array )
{
echo "path: ".$file_array['tmp_name']."<br />\n";
echo "name: ".$file_array['name']."<br />\n";
echo "type: ".$file_array['type']."<br />\n";
echo "size: ".$file_array['size']."<br />\n";
if(is_uploaded_file( $file_array['tmp_name'] ))
{
echo "$file_dir".$file_array['name'];
copy ($file_array['tmp_name'], "$file_dir".$file_array['name']);
}
I know the problem is with IIS (windows server).
if i change the directory to "\" so it writes to the hard drives root directory, it works fine...
Ive tried everything (full paths etc..) its obviously a problem with iis letting it create the file.
how do i tell iis its ok to write there, ive tried every option i can think of in IIS.