Apache on Windows XP problem

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!

Moderator: General Moderators

Post Reply
rookiepaul
Forum Newbie
Posts: 1
Joined: Wed Jul 19, 2006 6:05 am
Location: United Kingdom

Apache on Windows XP problem

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
Post Reply