chmod()
- From: "MS" <nospamplaesegr8t_ukuk@xxxxxxxxxxx>
- Date: Sat, 28 May 2005 17:05:58 +0000 (UTC)
I am trying to chmod a file. my test code is...
if(file_exists($nwfn)) {
echo "Found ($nwfn)<br>\n";
if (chmod($nwfn, 0777)){
echo "chmod changed to 0777<br>\n";
}
}
--------------------------------------
$nwfn is the filesystem location of the file..
output of this code is...
Found (/home/mysite/public_html/test/admin/includes/configure.php)
Warning: chmod(): Operation not permitted in
/home/mysite/public_html/test/admin/php-bin/create_test.php on line 13
my question is.. for what reason is the chmod operation not permitted?
also when you have a file in a subdirectory and the chmod of the file is 777
does it matter what the chmod of the directories are to be able to edit the
file?
Thnx
Alex
--
----------------------------------------------------------------------------
http://www.clickonlingerie.com?SIG - Exotic Erotic Lingerie
----------------------------------------------------------------------------
.
- Follow-Ups:
- Re: chmod()
- From: Janwillem Borleffs
- Re: chmod()
- Prev by Date: Re: md5 encryption
- Next by Date: register_long_arrays still show off ?
- Previous by thread: Re: Need MySQL management tool recommendation
- Next by thread: Re: chmod()
- Index(es):