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.

Re: [PHP] file permissions

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

[PHP] file permissions

2007-06-07 Thread Ross
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_id, 0755); chown('images/'.$customer_id,

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.

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

2006-02-02 Thread Brian Dunning
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 I get the following error. I set the permissions on the

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

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 I

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

[PHP] file permissions

2004-08-20 Thread Petr Tvaroha
Hi, I have a question concerning file permissions on the server. When i try to use fopen($file,w) i am said i am not permitted to do so unless i set the file permissions manualy (FTP) to 666 (cannot use chmod() as well). Well i am asking how big risk it is to leave files with 666 (or dirs with

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 the

[PHP] File permissions on Windows, IIS

2003-11-14 Thread Marius Røstad
I have a Windows XP pro with IIS 5.1 and Php 4.3.3 which I use for local development, and I'm trying to use a bunch of the file commands for making a very simple file manager application. However, I can't seem to get most of them to work, i.e. mkdir(). I get a permission denied message. I have

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

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, then you want to

[PHP] File Permissions

2003-01-24 Thread Don Mc Nair
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/reg/regformte st.php on line 411 I have tried setting this

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

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

RE: [PHP] file permissions on counter?

2002-04-24 Thread John Holmes
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 whenever I need to use a simple text-file based counter: ? $file = .count.txt; $fp

[PHP] file permissions on counter?

2002-04-23 Thread Antonio
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 file (counter.txt) it has all the permissions (777). I don't know how to do, could somebody help me? I execute this file on server:

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

Re: [PHP] file permissions on counter?

2002-04-23 Thread Tyler Longren
($file, w+); fputs($fp, $counter); fclose($fp); include($file); ? Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: Antonio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 8:48 PM Subject: [PHP] file permissions

[PHP] File Permissions

2001-05-12 Thread Phil Ewington
Hi All, I am having problems with file permissions. I am trying to use fopen() to write to a text file and get the error - 'permission denied'. I then used chmod(file.txt, 0755); and got the message that I was not the file owner, can someone help me out? PHP 3.0.9 Solaris 2.7/Apache 1.3.3 TIA