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?
folder persmissions problem
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: folder persmissions problem
Change your PHP to this...markldxb wrote:I'm running an upload script which requires the code below:
$copy = copy($_FILES['$theFile']['tmp_name'], $filename);
Code: Select all
$copy = copy($_FILES[$theFile]['tmp_name'], $filename);