Page 1 of 1

folder persmissions problem

Posted: Sat Oct 07, 2006 12:51 pm
by markldxb
I'm running an upload script which requires the code below:
$copy = copy($_FILES['$theFile']['tmp_name'], $filename);

an error message appears:
Warning: Unable to open '' for reading: Permission denied in c...

I'm running Apache on a Windows machine. How do I do CHMOD on my system? Or set folder permissions?

Any solution?

Posted: Sat Oct 07, 2006 1:12 pm
by waradmin
You dont need to do CHMOD on windows as with apache I understand that each folder is always 0777. However, its trying to file "" which means there is no file. Something is wrong with your syntax because its saying the file isnt there by saying file ""

Re: folder persmissions problem

Posted: Sat Oct 07, 2006 2:04 pm
by RobertGonzalez
markldxb wrote:I'm running an upload script which requires the code below:
$copy = copy($_FILES['$theFile']['tmp_name'], $filename);
Change your PHP to this...

Code: Select all

$copy = copy($_FILES[$theFile]['tmp_name'], $filename);
See if that helps.