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 in .

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

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

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

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

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 --

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
the files are all owned by me, that is, my unix login. --- Jason Bell [EMAIL PROTECTED] wrote: who owns the file to begin with? your account? a web server typically runs as a low access account, such as nobody on Unix. So, what is probably happening is that you don't have permissions to

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
Therein lies the problem. The webserver, therefore your PHP script, is probably *NOT* running with your credentials. Larry * Police Trainee [EMAIL PROTECTED] [010831 13:50]: the files are all owned by me, that is, my unix login. --- Jason Bell [EMAIL PROTECTED] wrote: who owns the file

RE: [PHP] chmod

2001-08-05 Thread Ben Bleything
Chmod -R 77x test The 'x' in the above statement is the world-permissions... Execute is worth 1, Write is worth 2, Read is worth 4. If you add up the numbers for the permissions you want, you get the result, so 775 would be full access for owner and group, and read/execute for world. Hope