[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: ?php 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

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: ?php 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

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: ?php 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

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: ?php chmod(/aaa/bbb.php, 0777); ? and I get a warning says Operations not permitted in . Anyone met

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: ?php chmod(/aaa/bbb.php, 0777); ? and I get a warning says Operations not permitted

[PHP] Chmod a Directory

2007-10-09 Thread abderrazzak nejeoui
Please how can i chmod a directory to 0777 i tried chmod ($myDirectory, 0777); but nothing happens thanks in advence Nejeoui

Re: [PHP] Chmod a Directory

2007-10-09 Thread Samuel Vogel
You will have to loop through the directory recursively, running chmod() on every file there is! Regards, Samy abderrazzak nejeoui schrieb: Please how can i chmod a directory to 0777 i tried chmod ($myDirectory, 0777); but nothing happens thanks in advence Nejeoui -- PHP General

Re: [PHP] Chmod a Directory

2007-10-09 Thread Stut
abderrazzak nejeoui wrote: Please how can i chmod a directory to 0777 i tried chmod ($myDirectory, 0777); but nothing happens Check the return value. If it's false then it's failing for some reason., most likely because the user it's running as doesn't have permission to extend the

Re: [PHP] Chmod a Directory

2007-10-09 Thread Daniel Brown
On 10/9/07, Stut [EMAIL PROTECTED] wrote: abderrazzak nejeoui wrote: Please how can i chmod a directory to 0777 i tried chmod ($myDirectory, 0777); but nothing happens Check the return value. If it's false then it's failing for some reason., most likely because the user it's running as

Re: [PHP] Chmod a Directory

2007-10-09 Thread tedd
At 12:00 PM +0200 10/9/07, Samuel Vogel wrote: You will have to loop through the directory recursively, running chmod() on every file there is! Regards, Samy Isn't there a sticky bit thing (i.e., 1777) you can use to change the files inside a directory? I've never done it, but I remember

Re: [PHP] Chmod a Directory

2007-10-09 Thread Daniel Brown
On 10/9/07, tedd [EMAIL PROTECTED] wrote: At 12:00 PM +0200 10/9/07, Samuel Vogel wrote: You will have to loop through the directory recursively, running chmod() on every file there is! Regards, Samy Isn't there a sticky bit thing (i.e., 1777) you can use to change the files inside a

[PHP] CHMOD a file in windows server 2003

2007-01-11 Thread Kencana
Hi all, anybody knows how to CHMOD a file to 777 or 666 or etc. in windows server 2003? thank you Regards, Kencana -- View this message in context: http://www.nabble.com/CHMOD-a-file-in-windows-server-2003-tf2962953.html#a8290007 Sent from the PHP - General mailing list archive at

Re: [PHP] CHMOD a file in windows server 2003

2007-01-11 Thread Jochem Maas
Kencana wrote: Hi all, anybody knows how to CHMOD a file to 777 or 666 or etc. in windows server 2003? windows server 2003 (et al) uses a completely different mechanism to the std linux way of doing things with regard to file permissions. other than opening lots of dialogs and checking

Re: [PHP] CHMOD a file in windows server 2003

2007-01-11 Thread John Comerford
Check out the CACLS command HTH, JC Kencana wrote: Hi all, anybody knows how to CHMOD a file to 777 or 666 or etc. in windows server 2003? thank you Regards, Kencana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] chmod difficulties...

2004-11-10 Thread Scott Fletcher
Hi, I'm using the AIX or UNIX system... When I tried the ... --snip-- passthru('chmod -R a+rw ../WebHelp/* 21'); --snip-- I get an error message, Operation Is Not Permitted.. So, I tried other option... --snip-- chmod(../WebHelp/, 0755); --snip-- I get an error message, Warning: chmod(): Not

[PHP] CHMOD...

2003-12-04 Thread Tristan . Pretty
Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod (/somedir/%,

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] exec(chmod 0777 /directory/*); You still cannot set all sub directory and files within those permissions. Best to loop through and set each as needed, don't forget to cahnge them back. Yes, you can: exec(chmod -R 0777 /directory/*); [snip] *slaps forehead* Duh me! Of course! I so

Re: [PHP] CHMOD...

2003-12-04 Thread Sophie Mattoug
Jay Blanchard wrote: [snip] Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply?

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Jay Blanchard wrote: Yes you can, but 'tis not a swell idea. You can exec the chmod command exec(chmod 0777 /directory/*); You still cannot set all sub directory and files within those permissions. Best to loop through and set each as needed, don't forget to cahnge them back. Yes, you can:

Re: [PHP] CHMOD...

2003-12-04 Thread Neil Freeman
How about: exec(chmod -R 755 /somedir/); [EMAIL PROTECTED] wrote: *** This Email Has Been Virus Swept *** Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders

RE: [PHP] CHMOD...

2003-12-04 Thread Jay Blanchard
[snip] Is there anyway to use CHMOD: chmod (/somedir/somefile, 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod

Re: [PHP] CHMOD...

2003-12-04 Thread Justin Patrin
In all fairness, that's not a very good solution. Using system commands makes your script not cross platform, meaning it can't work on Windows. For a better solution try writing a recursive chmod script that sets the permission, the loops through the files and calls itself on them if the input

Re: [PHP] CHMOD...

2003-12-04 Thread Marek Kilimajer
Justin Patrin wrote: In all fairness, that's not a very good solution. Using system commands makes your script not cross platform, meaning it can't work on Windows. For a better solution try writing a recursive chmod script that sets the permission, the loops through the files and calls itself

[PHP] Chmod funk

2003-01-24 Thread Liam . Gibbs
This line of code: if(!is_readable(Constants.inc)) chmod(Constants.inc, 0644); Produces this error: Warning: chmod() [function.chmod]: Operation not permitted in /home/mastersite/public_html/index.php on line 6 What I'm trying to do is determine if Constants.inc is readable. If not, I want to

[PHP] chmod - some files can be viewed, others cannot

2002-10-14 Thread Phil Powell
I have a directory $DOCUMENT_ROOT/my/images, permission 0755 I have three images in my folder with the exact same permissions: 0755; same ownership, same everything. The files, viewed on my machine, are fine too. However, two cannot be seen due to permissions errors; one can be seen. All

[PHP] chmod error?

2002-04-10 Thread John Weez
Hi all...I want to change the ownership of a file that is created via php..so i uses chmod command in my php script.. Upon execution of the script i get an error saying command not permitted with a line number pointing to my chmod command. I'm running apache as user nobody for security

Re: [PHP] chmod error?

2002-04-10 Thread Henrik Hudson
Hello. First off, to change ownership you want chown, not chmod. Also, chown isn't always permitted depending on the cicrumstances of who owns the directory or the specific file to begin with. If you're web server is running as nobody it will only be able to create files in a directory

[PHP] chmod trouble

2001-10-03 Thread Nikola Veber
Hi ! What chmod value gives the read-only premission to the file ? (777 is the read-write) Thanks Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] chmod trouble

2001-10-03 Thread Dan Lowe
Previously, Nikola Veber said: What chmod value gives the read-only premission to the file ? (777 is the read-write) 0400 would be read-only and visible only to the owner 0444 would be read-only, visible to anyone 0644 would be read-only to anyone but the owner (r/w to owner). -dan --

[PHP] chmod and ps ef |grep httpd

2001-09-01 Thread Police Trainee
i've been told that the files must be owned by the same person that owns the httpd. using ps ef |grep httpd, it says grep httpd USERNAME= ENV=/home/police/.bashrc HISTSIZE= my unix login is police. so, what does this mean as far as trying to get my chmod command to work? thanx

[PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
can anyone help? safe mode is set to 0, which i believe is off. i put a chmod command in one of my scripts and got the following error on running it: Warning: chmod failed: Operation not permitted in /path-here/index.phtml on line 1 why won't chmod work? the chmod command i used is:

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
to chmod the file. Doesn't have anything to do with your PHP configuration. Jason Bell - Original Message - From: Police Trainee [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, August 31, 2001 11:43 AM Subject: [PHP] chmod failed: Operation not permitted can anyone

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Jason Bell
- From: Police Trainee [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, August 31, 2001 11:50 AM Subject: Re: [PHP] chmod failed: Operation not permitted the files are all owned by me, that is, my unix login. --- Jason Bell [EMAIL PROTECTED] wrote: who owns the file to begin

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Larry Rosenman
Message - From: Police Trainee [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, August 31, 2001 11:43 AM Subject: [PHP] chmod failed: Operation not permitted can anyone help? safe mode is set to 0, which i believe is off. i put a chmod command in one of my scripts

[PHP] chmod

2001-08-05 Thread Manu Verhaegen
I have the following question : I have a directory on my ftp server and i want give access to this directory by usergroup ( the name of the group is test ) We have do the following : % vadduser user Configuration -- Username: test Password: test Fullname: test

RE: [PHP] chmod

2001-08-05 Thread Ben Bleything
this helps = Ben -Original Message- From: Manu Verhaegen [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 05, 2001 4:29 AM To: 'Php-General (E-mail) Subject: [PHP] chmod I have the following question : I have a directory on my ftp server and i want give access to this directory by usergroup

[PHP] chmod

2001-08-04 Thread Manu Verhaegen
I have the following question : I have a directory on my ftp server and i want give access to this directory by group (the name of the group is test) % ls % /ftp/test % chmod 070 test how can i do this Greetings, Manu -- PHP General Mailing List (http://www.php.net/) To unsubscribe,