Forum Moderators: coopster
The used code is something like this:
$cursuri = "../cursuri";
@mkdir($cursuri, 0777);
Note: if I use total commander "chmod 777 cursuri" I don't get any problems.
Can somebody tell me where I'm wrong and offer a better solution, please?
Thank you.
there is a recursive chmod function in the user comments on this page
[php.net...]
normally when issuing the proper command via the command line it would be something like
chmod -R 777 mydir
then all files get the appropriate permissions.
Another option might be to delete these files via a script which will also work.
and works fine.
Another problem occured now :D. On another server safe_mode is on; I want to create a file (user inputs some data and this data is stored in a file from a 777 folder.
Because of safe_mode on I get the following error:
"fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid/gid is 10187/10187 is not allowed to access /..../Folder owned by uid/gid 99/503"
Is there a way of avoiding this error and create the file?