I had that same problem.  It fixed itself when I changed directories and
recreated the directories.  I'm not certain if it had to do with the
permissions on those folders or what, but that made all the difference.
Have you double checked your php.ini file for the upload directory?

John

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est


> -----Original Message-----
> From: Randall Barber [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 1:14 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP-WIN] Uploading Files
> 
> 
> 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
> 
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to