Re: [PHP] chmod - Opertaion not permitted in ....

2009-06-24 Thread Shawn McKenzie
Ashley Sheridan wrote:
> On Wed, 2009-06-24 at 09:23 -0500, Shawn McKenzie wrote:
>> Michael A. Peters wrote:
>>> Morris wrote:
 Hi all
 Got a problem don't know how to get in really..

 simple code:
 >>>
 chmod("/aaa/bbb.php", 0777);

 ?>

 and I get a warning says "Operations not permitted in ."

 Anyone met this before? I've done quite a lot reading on Google but
 couldn't
 get to it.

 THanks

>>> Many servers do not allow the apache (or php) to change file permissions.
>> Most likely the apache user doesn't own the file.  You can't CHMOD a
>> file if you don't own it.
>>
>> -- 
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
> Well, technically speaking you can, if you are part of the same group
> and it has group permissions,

technically speaking, No

 or it has permissions allowing anyone to
> modify it :p

technically speaking, No

> 
> Thanks
> Ash
> www.ashleysheridan.co.uk
> 


-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] chmod - Opertaion not permitted in ....

2009-06-24 Thread Ashley Sheridan
On Wed, 2009-06-24 at 09:23 -0500, Shawn McKenzie wrote:
> Michael A. Peters wrote:
> > Morris wrote:
> >> Hi all
> >> Got a problem don't know how to get in really..
> >>
> >> simple code:
> >>  >>
> >> chmod("/aaa/bbb.php", 0777);
> >>
> >> ?>
> >>
> >> and I get a warning says "Operations not permitted in ."
> >>
> >> Anyone met this before? I've done quite a lot reading on Google but
> >> couldn't
> >> get to it.
> >>
> >> THanks
> >>
> > 
> > Many servers do not allow the apache (or php) to change file permissions.
> 
> Most likely the apache user doesn't own the file.  You can't CHMOD a
> file if you don't own it.
> 
> -- 
> Thanks!
> -Shawn
> http://www.spidean.com
> 
Well, technically speaking you can, if you are part of the same group
and it has group permissions, or it has permissions allowing anyone to
modify it :p

Thanks
Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] chmod - Opertaion not permitted in ....

2009-06-24 Thread Shawn McKenzie
Michael A. Peters wrote:
> Morris wrote:
>> Hi all
>> Got a problem don't know how to get in really..
>>
>> simple code:
>> >
>> chmod("/aaa/bbb.php", 0777);
>>
>> ?>
>>
>> and I get a warning says "Operations not permitted in ."
>>
>> Anyone met this before? I've done quite a lot reading on Google but
>> couldn't
>> get to it.
>>
>> THanks
>>
> 
> Many servers do not allow the apache (or php) to change file permissions.

Most likely the apache user doesn't own the file.  You can't CHMOD a
file if you don't own it.

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] chmod - Opertaion not permitted in ....

2009-06-24 Thread Michael A. Peters

Morris wrote:

Hi all
Got a problem don't know how to get in really..

simple code:


and I get a warning says "Operations not permitted in ."

Anyone met this before? I've done quite a lot reading on Google but couldn't
get to it.

THanks



Many servers do not allow the apache (or php) to change file permissions.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] chmod - Opertaion not permitted in ....

2009-06-24 Thread Morris
Hi all
Got a problem don't know how to get in really..

simple code:


and I get a warning says "Operations not permitted in ."

Anyone met this before? I've done quite a lot reading on Google but couldn't
get to it.

THanks