Ok, linux newbie.. Installed mandrake, apache, php, mysql..etc..
In a script, I am trying to do a chmod($curdir, 0777) where $curdir is something like "/var/www/html/web/test"
It fails everytime.. Im just running it locally right now, and it fails if Im logged in as a user or as the root..
$curdir = "/var/www/html";
if(!chmod($curdir, 0777))
{
print("chmod failed...");
}
else
{
print("ok");
}
that should be all there is too it, right? So what am I doing wrong?
Oh and before someone says permissions, I have set permissions on the html directory to give me full read,write & execute... Unless mandrake is screwy in that fashion..