PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
path: C:\WINDOWS\TEMP\php2C.tmp
name: image012.jpg
type: image/pjpeg
size: 6551
Warning: move_uploaded_file(C:\Inetpub\wwwroot\pc-dna\pics\fupload) їfunction.move-uploaded-file]: failed to create stream: Permission denied in c:\inetpub\wwwroot\pc-dna\submit2.php on line 17
Warning: move_uploaded_file() їfunction.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php2C.tmp' to 'C:\Inetpub\wwwroot\pc-dna\pics\fupload' in c:\inetpub\wwwroot\pc-dna\submit2.php on line 17
Couldn't copy
I am running my machine as an administrator with all the priveleges enabled. I have also checked and double checked that the above folders exist, yet it still can't create the file. I am running PHP 4.3.1 on IIS 5.0 with MySQL 3.23.xx. Please help.
I think I found half my problem. I connected to my computer's FTP server as the system administrator, and noticed that the folder pics is chmodded 555. I tried setting it to 755 and 777, but it doesn't seem to work. Could that be my problem? How do I set 777 on IIS? (through the FTP client doesn't seem to work)
Depending on which version of Windows you are running - you may be able to alter permissions by right-clicking on the folder, going to the security tab and making sure that the IUSR_yourcomputernamehere account has read and write permissions.
You may want to check the Microsoft website for information for you specific version.