File Upload and Dir Creation!! Confuzed ;/
Posted: Fri Nov 08, 2002 6:08 pm
Hey everyone, i have been trying to figure out how to do this for over a week now, and finally decided to get some help from the forums ;P
Well, i made a script that checks if a dir is present witht he is_dir() function, and if it is not, it creates the dir via mkdir($thedir,0777). I make the dir 777 because i want to be able to upload into it. The problem is though, after the dir is created and the file tries to be copied in, it says another UID owns that dir. It is very frustrating, here is the actual error:
Hope thats not too confuzing
Any and all replies are appreciated! E-Mail me at webmaster@tintedreality.net if you would like to send me an example file or a solution.
Thanks very much!!!!
Tinted Reality Webmaster
Well, i made a script that checks if a dir is present witht he is_dir() function, and if it is not, it creates the dir via mkdir($thedir,0777). I make the dir 777 because i want to be able to upload into it. The problem is though, after the dir is created and the file tries to be copied in, it says another UID owns that dir. It is very frustrating, here is the actual error:
As you can see, "uploads" i created via FTP and chmodded it to 777. I can upload files perfectly there with no worries. But the trouble comes in, when i have to make the dated dir if it doesnt exits. Because after its made and i try to upload to it, the above error comes upWarning: SAFE MODE Restriction in effect. The script whose uid is 531 is not allowed to access /home/virtual/site27/fst/var/www/html/uploads/2002-01-01 owned by uid 48 in /home/virtual/site27/fst/var/www/html/ul.php on line 8
Any and all replies are appreciated! E-Mail me at webmaster@tintedreality.net if you would like to send me an example file or a solution.
Thanks very much!!!!
Tinted Reality Webmaster