nadeemshafi9 Posted October 28, 2007 Share Posted October 28, 2007 Hello Guys i am realy sick of playing with these permissions, when i think i understand them one minuit and the next they have changed there physics. I make the directory 0777 and then write the file then i make the file ??? i tried a few but they keep from being read im sure the file is ok i think i can handdle file permissions but i think its directory permissions im having a prob with. Its an image file i write it and then need to use it so make the directory 0777 and then write the file and then what to the file and what to the directory ? i am using php ftp() but if anyone knows any differences with php chmod() then please tell me apart from that i do a 777 righth now and leave it at that. what should i being to the directory and file after to make it secure because i dont whant people tampering with them ? OH AND THIS PROBS ON TH MAC OSX 10.4 TIGER my chmoding works fine on linux the way it is 0777 and then a 655 + somtimes i play with the permissions of the directory throgh the os GUI or the shell and i got it to tell me i dont have permissions in the OS but in PHP its ok is this coz PHP got ownership of it when i messed with the addtional BIT. Quote Link to comment https://forums.phpfreaks.com/topic/75063-file-and-directory-permissions-for-php-application/ Share on other sites More sharing options...
nadeemshafi9 Posted October 28, 2007 Author Share Posted October 28, 2007 how do i find the group and user of PHP on a mac ? i know u can just do it in the shell but will it show me the actual words of the group and usr or just pid's, i havent tried yet the gui in the mac is better than the shell or any other linux guis Quote Link to comment https://forums.phpfreaks.com/topic/75063-file-and-directory-permissions-for-php-application/#findComment-379651 Share on other sites More sharing options...
trq Posted October 28, 2007 Share Posted October 28, 2007 how do i find the group and user of PHP on a mac ? ls -l filename Quote Link to comment https://forums.phpfreaks.com/topic/75063-file-and-directory-permissions-for-php-application/#findComment-379677 Share on other sites More sharing options...
nadeemshafi9 Posted October 30, 2007 Author Share Posted October 30, 2007 yeh so i check and all the files made by php belong to the account nadeem which is my account which means its running under my account so whu dosent it work when i chmod 777 the directory, write the image file and then chmod 755 the image and then chmod 755 the directory UP TILl THEN evERYTHiNG IS FINE - then i open the image and crop it with that crop interface and then when i chmod directory 777 object.saveimage and chmod file 755 and directory 755 I CANT READ THE CROPPED IMAGE it says i dont have permissions to access that directory ????? works perf if i chmod 777 all the way but thats not a good idea so i need this resolved it seems to work on the red hat box. OH by the way that crop image class and interface uses the GD library or whatever its called to save the image is that somthing that may affect it ? Quote Link to comment https://forums.phpfreaks.com/topic/75063-file-and-directory-permissions-for-php-application/#findComment-381497 Share on other sites More sharing options...
nadeemshafi9 Posted October 30, 2007 Author Share Posted October 30, 2007 what does it mean if the resultant image says in ls -l (nobody nadeem) which one is the group and which one is the user ? and even thogh im 777 ing them there going rw-r-r ???? Quote Link to comment https://forums.phpfreaks.com/topic/75063-file-and-directory-permissions-for-php-application/#findComment-381506 Share on other sites More sharing options...
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.