Folder permissions and PHP
Posted: Tue Jul 10, 2007 1:43 pm
When my users create an account, my code creates personal folders for them.
$currentdir=getcwd();
$savedir="$currentdir/users/$_COOKIE[username]/albums/$_POST[albumname]";
mkdir($savedir,0777);
BUT it isnt creating the folders with a 777 permission. Its a Linux server running Apache. How can I make my script create the folders with 777 chmod by default?
Any help greatly appreciated
john
$currentdir=getcwd();
$savedir="$currentdir/users/$_COOKIE[username]/albums/$_POST[albumname]";
mkdir($savedir,0777);
BUT it isnt creating the folders with a 777 permission. Its a Linux server running Apache. How can I make my script create the folders with 777 chmod by default?
Any help greatly appreciated
john