Re: [PHP] file permissions

2007-06-09 Thread Dave Goodchild
Why not use umask?

Re: [PHP] file permissions

2007-06-09 Thread Richard Lynch
On Thu, June 7, 2007 7:30 am, Ross wrote: > n relation to my other posts it is not that the folder permission are > not > working, when I put an image inside them the image automatically has a > 600 > chmod and has the owner is 'nobody'. This means I cannot delete the > files. > > mkdir('images/'.

Re: [PHP] file permissions

2007-06-07 Thread Daniel Brown
On 6/7/07, Ross <[EMAIL PROTECTED]> wrote: n relation to my other posts it is not that the folder permission are not working, when I put an image inside them the image automatically has a 600 chmod and has the owner is 'nobody'. This means I cannot delete the files. mkdir('images/'.$customer_

Re: [PHP] File permissions do not seem to be my friend

2006-02-02 Thread Richard Lynch
On Thu, February 2, 2006 11:34 am, Brian Dunning wrote: > On Feb 2, 2006, at 9:21 AM, David Grant wrote: > >> This is a php.ini setting, so a FS permissions problem. The >> sysadmin >> needs to disable safe mode on your behalf. > > Assuming this hosting company prefers to keep safe mode on, is the

Re: [PHP] File permissions do not seem to be my friend

2006-02-02 Thread Richard Lynch
On Thu, February 2, 2006 11:20 am, Brian Dunning wrote: > I have a script that scans an images folder and creates a thumbnail > for each and writes it to a new subfolder. Runs fine on my > development box. But I'm using a new host that I'm unfamiliar with > (servage.net), and when I run the script

Re: [PHP] File permissions do not seem to be my friend

2006-02-02 Thread Brian Dunning
On Feb 2, 2006, at 9:21 AM, David Grant wrote: This is a php.ini setting, so a FS permissions problem. The sysadmin needs to disable safe mode on your behalf. Assuming this hosting company prefers to keep safe mode on, is there no way my scripts can create files? -- PHP General Mailing Li

Re: [PHP] File permissions do not seem to be my friend

2006-02-02 Thread David Grant
Brian, This is a php.ini setting, so a FS permissions problem. The sysadmin needs to disable safe mode on your behalf. David Brian Dunning wrote: > I have a script that scans an images folder and creates a thumbnail for > each and writes it to a new subfolder. Runs fine on my development box. >

Re: [PHP] File permissions on Windows, IIS

2003-11-16 Thread Jason Wong
On Saturday 15 November 2003 00:47, Chris Shiflett wrote: > I would recommend, however, taking the time to figure out exactly what > permissions are necessary and not grant anymore than that. While many > developers use "chmod 777" while trying to debug a problem, it is a very > bad idea to leave

Re: [PHP] File permissions on Windows, IIS

2003-11-14 Thread CPT John W. Holmes
From: "Chris Shiflett" <[EMAIL PROTECTED]> --- Marius Røstad <[EMAIL PROTECTED]> wrote: > > I have a Windows XP pro > [snip] > > How do I change file permissions to make it "identical" to the > > chmod 777 on Unix systems. > > With Windows, you probably right-click the file and go to properties, th

Re: [PHP] File permissions on Windows, IIS

2003-11-14 Thread Chris Shiflett
--- Marius Røstad <[EMAIL PROTECTED]> wrote: > I have a Windows XP pro [snip] > How do I change file permissions to make it "identical" to the > chmod 777 on Unix systems. This is a total guess, but... With Windows, you probably right-click the file and go to properties, then you want to grant

Re: [PHP] File Permissions

2003-01-24 Thread Maxim Maletsky
try this: echo "you " . ( is_writable("testfile2.php")? 'can ' : 'cannot' ) . " write"; the function is_writable() will tell you in advance whether the file is writable or not. -- Maxim Maletsky [EMAIL PROTECTED] "Don Mc Nair" <[EMAIL PROTECTED]> wrote... : > Sorry if this is not really PH

Re: [PHP] File Permissions

2003-01-24 Thread Jason Wong
On Friday 24 January 2003 18:00, Don Mc Nair wrote: > Sorry if this is not really PHP related but I can't get it to work. > > I am using fopen and I get the following: > > Warning: fopen("testfile2.php", "w") - Permission denied in > /usr/local/psa/home/vhosts/complementarymedicines.net/httpdocs/re

RE: [PHP] file permissions on counter?

2002-04-24 Thread John Holmes
2002 8:44 PM > To: Antonio; [EMAIL PROTECTED] > Subject: Re: [PHP] file permissions on counter? > > Hi Antonio, > > try this for your fopen(): > $file=fopen("counter.txt","r+") > > Incase you're interested, here's the code I use w

Re: [PHP] file permissions on counter?

2002-04-23 Thread Tyler Longren
Hi Antonio, try this for your fopen(): $file=fopen("counter.txt","r+") Incase you're interested, here's the code I use whenever I need to use a simple text-file based counter: Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: "A

Re: [PHP] file permissions on counter?

2002-04-23 Thread Bogdan Stancescu
You should check the whole path and make sure Apache has enough rights to read through all directories. Bogdan Antonio wrote: > Hi, I have to read a simple counter on my server, but the server >responses that I haven't permissions to open the file which contains the >data in write mode. This f