Page 1 of 1

Apache on Windows XP problem

Posted: Tue Jul 25, 2006 6:11 am
by rookiepaul
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
I'm having problems with permissions while running Apache/2.0.55 (Win32) and PHP Version 5.1.2. I get the following errors:

Code: Select all

Warning: move_uploaded_file(i/products/115378850400.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\webserver\htdocs\vinbiz\class\product.class.php on line 343

Code: Select all

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php28.tmp' to 'i/products/115378850400.jpg' in C:\webserver\htdocs\vinbiz\class\product.class.php on line 343

Code: Select all

The webserver doesn't have write access to C:/webserver/htdocs/i/products/
All I'm trying to do is to upload a file. Everyone and system has full rights. I have had a serious look on the internet and can't find a cure for it. Any one had this before?

Cheers

Rookie.

Posted: Tue Jul 25, 2006 6:12 am
by Benjamin
Your script is trying to read and and copy the file to "i/products/115378850400.jpg", which is not a valid path.

Post your code if you need help fixing it.