Author |
Message |
|
Ok, made the change, here is the error message:
Warning: move_uploaded_file(c:\inetpub\wwwroot\guestbook\public\img-1145833233.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\phpC.tmp' to 'c:\inetpub\wwwroot\guestbook\public\img-1145833233.jpg' in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145833233.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
|
|
|
I have verified the folder permissions, all set to 777. I don't think the path could be wrong as I didn't change anything else. Only thing I changed or added was the MySQL information. Everything else is "stock".
|
|
|
I stll think it has to do with the path where it is trying to save the image to. It starts off
c:\inetpub\wwwroot\guestbook
which all seems correct, then it goes
/public/img-1145808612.jpg
The slashes in the first partd are all back slashes and the second part is all forward slashes. In windows, the path should only have back slashes, shouldn't it?
|
|
|
No, that didn' seem to help. Here are the new error messages after I made the changes.
Warning: move_uploaded_file(c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php4.tmp' to 'c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg' in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
Also, PHP safe mode is not turned on.
|
|
|
I also get this error message:
Warning: copy(c:\inetpub\wwwroot\guestbook/public/img-1145630277.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145630277.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
Again in the path, it has two \ then two /. In windows, should they all be \?
|
|
|
I just installed this last night and when trying to upload a picture, I get the following error:
Warning: copy(c:\inetpub\wwwroot\guestbook/tmp/img-1145625858.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 164
Now it seems to be it has to do with the copy command in the beginging of the error message. The location has two back slashes then changes to forward slash for the tmp and img directory.
|
|
|