..copying files .. again...
Posted: Tue Nov 19, 2002 4:14 pm
...simple script to copy a file from a client PC to the server (running Apache/Win2000/PHP4.2.3) results in the error message below. Script tested on two servers with same result.
error message
code is:
Code: Select all
Warning: Unable to create '../images/': Permission denied in c:\program files\apache group\apache\htdocs\test\add_row_4.php on line 61code is:
Code: Select all
if (is_uploaded_file($new_stuffї$i]))
{
echo $new_stuffї$i]; echo"<BR>";
$temp = substr ( strrchr($new_stuffї$i] , "/"),1);
$dest_file_name = "../images/" . $temp;
echo $dest_file_name;
if (copy( $new_stuffї$i], $dest_file_name ))
{
echo"<TR><TD></TD><TD>";
arial_2("File copied awlrait!!");
echo"</TD></TR>";
$new_stuffї$i] = $dest_file_name . ".jpg";
}
....
}
any ideas what's causing the problem?