Hi,
I am trying now for the last 2 weeks to get a $!*@ script to change all my files under one folder to 644.
Can someone please help me or just give me a script you have cause I am now fed up with this stuff not wanting to work.
Thank-you
[PHP]
$file = all my files in my images folder or this directory
$old = umask(0);
chmod("$file", 0644);
umask($old);
// Checking
if ($old != umask()) {
die('An error occured while changing back the umask');
}
[/PHP]
I am trying now for the last 2 weeks to get a $!*@ script to change all my files under one folder to 644.
Can someone please help me or just give me a script you have cause I am now fed up with this stuff not wanting to work.
Thank-you
[PHP]
$file = all my files in my images folder or this directory
$old = umask(0);
chmod("$file", 0644);
umask($old);
// Checking
if ($old != umask()) {
die('An error occured while changing back the umask');
}
[/PHP]
Comment