This is topic quick php question (problem solved) in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=048897

Posted by ricree101 (Member # 7749) on :
 
A script I'm writing is supposed to upload a file into a subdirectory of my htdocs folder in my apache directory. When I call move_uploaded_file(), it gives me an error saying that permission is denied. Does anyone have any ideas what could be causing this. Is it an Apache issue, or is it windows one? I tried googling for an answer, but I didn't get anything that looked like the problem I was having.

[ June 11, 2007, 02:19 AM: Message edited by: ricree101 ]
 
Posted by TomDavidson (Member # 124) on :
 
Does the user under which the script is running have rights to the directory?
 
Posted by ricree101 (Member # 7749) on :
 
It should. I'm not really sure how to check or change permissions with windows, though. Is there a windows equivalent to chmod?

Edit:

Oh man, stupid error on my part this time. Apparently, I managed to not include the filename on the destination, so it was trying to overwrite the directory with the file.

[ June 11, 2007, 02:21 AM: Message edited by: ricree101 ]
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2