Why not use umask?
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/'.
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_
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, 'r
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
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
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
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.
>
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
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
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
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
--- 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
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 res
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
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
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 part
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
-- Original Message -
From: "Antonio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 8:48 PM
Subject: [PHP] file permissions on counter?
> Hi, I have to read a simple counter on my server, but the server
> responses that I haven't permi
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
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:
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
TI
Hi there, I'm having difficulties, hoping I could get some help..
when I create a file on the local filesystem with fopen($filename)
I cant unlink($filename) the same file. I got
allways an error message, the scipt with uid 500 can not delete the file
with uid 0.
Is there a way to create the fil
23 matches
Mail list logo