View Full Version : Need some help please
ugcbrian
04-29-2004, 06:12 PM
I have a script that allows users to upload pics to a directory that i have chosen, only problem is the dir is protected and it cant be written to, how do i set the dir so that the script can copy the file without having it prompt anyone for passwords?
-Thx
y6y6y6
04-29-2004, 07:41 PM
Protected how? I don't think htaccess protections prevent file transfers.
ugcbrian
04-29-2004, 08:36 PM
when someone trys to use the script, they get this error
"Warning: copy(/home/evilpre/public_html/victoriam/userpic/picture_189.jpg): failed to open stream: Permission denied in /home/evilpre/public_html/victoriam/userpic/do_upload.php on line 82
Couldn't copy the file!"
CHMOD the directory with the permissions that script needs. Most likely either 0666 or 0777.
ugcbrian
04-29-2004, 09:20 PM
yeah after a few minutes how thought i remembered i forgot to set the permissions on the new folder ;( anyways, its working fine now, thx for the replys.
vBulletin® v3.7.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.