Date: 05/24/01
- Next message: Paco Ortiz: "RE: [PHP-WIN] Does OCILogon need ISAPI to stay persistent?"
- Previous message: Erik Ableson: "RE: [PHP-WIN] Remote UserName"
- Next in thread: Terry Romine: "[PHP-WIN] Re: [PHP-DB] Uploading Files"
- Reply: Terry Romine: "[PHP-WIN] Re: [PHP-DB] Uploading Files"
- Maybe reply: Asendorf, John: "RE: [PHP-WIN] Uploading Files"
- Maybe reply: OoCobra97 <email protected>: "Re: [PHP-WIN] Uploading Files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a NAGGING file upload problem.
Details: Win2k, IIS5, PHP v4.0.4
As I understand this system, PHP uploads all files to a temporary place on disk. From there you can move them anywhere you want to.
Well here's the scenario:
Users are allowed to upload PRN files. Once uploaded I have a directory "C:\printFiles" that I want everything moved to.
Here's the code:
<?php
if(is_uploaded_file($printFile)) {
move_uploaded_file($printFile, "c:\\printFiles");
}
else {
echo "Possible file attack<br>";
}
?>
Here is the error:
Warning: Unable to create '\printFiles': Permission denied in c:\inetpub\wwwroot\submit.php on line 5
Warning: Unable to move 'C:\PHP\uploadtemp\php3EE.tmp' to '\printFiles' in c:\inetpub\wwwroot\submit.php on line 5
I have permissions set on that directory for EVERYONE and IUSR_WORKSTATIONNAME set to FULL CONTROL.
I have NEVER been able to move/copy a file. Anyone know how I can fix this?
Thanks
RDB
- Next message: Paco Ortiz: "RE: [PHP-WIN] Does OCILogon need ISAPI to stay persistent?"
- Previous message: Erik Ableson: "RE: [PHP-WIN] Remote UserName"
- Next in thread: Terry Romine: "[PHP-WIN] Re: [PHP-DB] Uploading Files"
- Reply: Terry Romine: "[PHP-WIN] Re: [PHP-DB] Uploading Files"
- Maybe reply: Asendorf, John: "RE: [PHP-WIN] Uploading Files"
- Maybe reply: OoCobra97 <email protected>: "Re: [PHP-WIN] Uploading Files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

