View Single Post

(#1 (permalink))
Old
jijikikishoes jijikikishoes is offline
Junior Member
jijikikishoes is on a distinguished road
 
Posts: 19
Join Date: Jun 2008
Default php move_uploaded_file not working - 06-23-2008, 11:17 AM

Since moving my site to this server the call to move_uploaded_file isn't working.

I have looked at the $_FILE array and the file seems to being uploaded to the /tmp directory but when i try use move_uploaded_file to move it to my images/product directory it doesn't work.

I have done some looking into this and think it may be that the php process doesn't have permissions to move the file? To test this i gave my images and images/product a chmod to 777 but no luck.

one possible problem could be the public html directory isn't chowned to the user:apache or maybe the apache process doesn't have write permissions to the directory i am trying to move from/too

futrther investigation has made me come to the conclusion that the public html directory isn't chowned to the user:apache or maybe the apache process doesn't have write permissions to the directory I am trying to move from/too


has anyone else had this problem and come up with a work around?
Reply With Quote