imageel Posted January 9, 2005 Posted January 9, 2005 Apologies - for the last post... I have a set of php scripts in say directory A, which will attempt to create a directory in say B so my script will call a function which performs a mkdir in ../B however it fails with a permissions error. I've checked the permissions of B and it is 755, so am a little confused as to what's going wrong. Some sample output for the calling page - Warning: mkdir(../newgallery-images/Sovereign/thumbs): Permission denied in /home/imageel/public_html/newgallery/thumbnail.php on line 9 ..and line 9 is mkdir ("$outdir"); and $outdir = "$path/thumbs"; and $path is a parameter - in this case '../newgallery-images/Sovereign' This is probably some stupid mistake on my part, but I would appreciate any assistance from you in resolving it Regards Ed btw - it's now 22:35 local time - so I will not be around for ~ 22 hours - damn the day job!!! Quote
LisaJill Posted January 9, 2005 Posted January 9, 2005 I *think* to do that that you would need 777, but I'm not great with permissions. Worth a shot though. Quote
imageel Posted January 9, 2005 Author Posted January 9, 2005 I *think* to do that that you would need 777, but I'm not great with permissions. Worth a shot though. <{POST_SNAPBACK}> Thankyou - that fixed it - your a star! many thanks Regards Ed Quote
TCH-Bruce Posted January 9, 2005 Posted January 9, 2005 Yes, the folders have to have 777 permissions to work correctly because the scripts are not running under your cpanel user name. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.