In testing out a file upload script on my developer machine, I repeatedly came up with an error message. The goal was to upload pictures from a registration form into the folder 'clientpics' located somewhere within the htdocs (server) folder. Here's the message:
Configuration: Windows Vista Home Premium running Apache with PHP and MySQL.
Actually, I'm practically convinced this has to do with Windows file permissions. Months ago, I had a similar headache, which I eventually was able to overcome by doing some editing on the sharing/permissions properties of the innermost directory (say 'clientpics') . This I did by following a step-by-step instruction I stumbled upon somewhere on the web. Unfortunately, that system was lost when the laptop got missing.
Now, I'm having to redo everything from scratch, and I really do need help here!
Finally, apologies for a rather lengthy post.
Regards,
Ifedi.
Code:
Warning: move_uploaded_file(C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/doc/images/clientpics/nurses.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\doc\client_reg_page.php on line 25
Code:
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Users\ifedi\AppData\Local\Temp\PHP\upload\php1C02.tmp' to 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/doc/images/clientpics/nurses.jpg' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\doc\client_reg_page.php on line 25
Actually, I'm practically convinced this has to do with Windows file permissions. Months ago, I had a similar headache, which I eventually was able to overcome by doing some editing on the sharing/permissions properties of the innermost directory (say 'clientpics') . This I did by following a step-by-step instruction I stumbled upon somewhere on the web. Unfortunately, that system was lost when the laptop got missing.
Now, I'm having to redo everything from scratch, and I really do need help here!
Finally, apologies for a rather lengthy post.
Regards,
Ifedi.
Comment