When I create directories in PHP through the mkdir() command, what number
should I set the mode so I have the priveleges to delete the directory
through FTP? I used to always set them to 777 but then when I try to delete
the directories in FTP, it doesnt let me, and I have to write a PHP script
Hi there!
I got the following problem:
I want to mirror a complete directory tree. Now I traverse
the original tree, do changes to some of the files and want to
write the resulting files to a parallel directory.
Lets say $INPUT_PATH is the source path and $OUTPUT_PATH is
where I want to put
28, 2001 12:32 PM
Subject: [PHP] mkdir()
Hi there!
I got the following problem:
I want to mirror a complete directory tree. Now I traverse
the original tree, do changes to some of the files and want to
write the resulting files to a parallel directory.
Lets say $INPUT_PATH is the source
?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
Any thoughts?
-Jeff Gannaway
___
Save 15% on 2002 Calendars and Holiday Cards!
http://www.AvantGifts.com
Discount Code:
On Thursday 25 October 2001 10:08, you wrote:
?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
When you use a file-related command (fopen, mkdir, etc.) you're executing
that command under the same user-context that apache runs
a) check to see if the user that apache is running as has access to the
directory you're trying to write to.
b) try removing the quotes around 0775
Mike
Jeff Gannaway wrote:
?
$GalleryPHPName = Pins;
mkdir (../$GalleryPHPName, 0775);
?
Results in...
MkDir failed (Permission denied)
Any
Jeff,
If this script is running as nobody, or some other low-class user, and the
permissions on the directory in which you are attempting to create a
sub-directory do not allow the creation of the sub-directory by this user,
then mkdir will fail.
Say your script resides in 'php-stuff' with
How do I set permissions for a certain user (ie nobody) for a directory?
If I do this, won't anyone on teh server be able to write to that directory?
Thanks,
Jeff
At 10:39 AM 10/25/01 -0700, Kurt Lieber wrote:
On Thursday 25 October 2001 10:08, you wrote:
?
$GalleryPHPName = Pins;
mkdir
On Thursday 25 October 2001 11:41, you wrote:
How do I set permissions for a certain user (ie nobody) for a directory?
If I do this, won't anyone on teh server be able to write to that
directory?
If you're going to start messing around with *nix permissions, you really,
really need to have a
hi everybody!
i have an account at strato (german provider) who
hosts my php-scripts.
now i want to make a dir with mkdir(../tmp/$id, 0777)
it doesn't work at all eventhough the rights of tmp are set
to 777.
the script also doesn't alert anything, not a failed or anything..
does
When using this command:
mkdir (/usr/www/users//blah/blah/$username, 0777);
it sets it to nobody instead of my username. I'm then unable
to delete or modify files in that directory. Is there a way around
this? Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To
Jeff
JO mkdir (/usr/www/users//blah/blah/$username, 0777);
JO it sets it to nobody instead of my username.
Nobody is the user runng the Apache process that's why it is the owner
of the directory.
You can chown the direcotry from your PHP script after you create
it or chmod the files you copy
However even the permission of 0777 doesn't let me do anything to
the directory or files in it. I can't even chown or chmod anything in
it using Telnet once it's created.
Jeff Oien
Jeff
JO mkdir (/usr/www/users//blah/blah/$username, 0777);
JO it sets it to nobody instead of my username.
]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Jeff Oien [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 4:41 PM
Subject: RE: [PHP] mkdir Question
| However even the permission of 0777
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 28, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mkdir
On Sat, 28 Jul 2001, Jerry Lake wrote:
when using mkdir
I cant seem to make subdirectories
?
$oldumask = umask(0);
mkdir('test/test
This type of problem usually turns out to be a permissions issue.
Can Apache/nobody write to the parent directory?
Mick
On Sat, 28 Jul 2001, Jerry Lake wrote:
when using mkdir
I cant seem to make subdirectories
?
$oldumask = umask(0);
mkdir('test/test', 0777);
umask($oldumask);
?
is
On Sat, 28 Jul 2001, Jerry Lake wrote:
when using mkdir
I cant seem to make subdirectories
?
$oldumask = umask(0);
mkdir('test/test', 0777);
umask($oldumask);
?
is there any way to do this ?
does the first test directory already exist? you may need to make them in
two steps. i believe
when using mkdir
I cant seem to make subdirectories
?
$oldumask = umask(0);
mkdir('test/test', 0777);
umask($oldumask);
?
is there any way to do this ?
Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
--
I am pretty new to PHP but have used other scripting languages. I am trying
to use to mkdir() function on an apache server and keep getting this error
MkDir failed (Permission denied). I don't have physical access to the
server.
What's up?
Thanks in advance for any help.
Dan Pupek
On the Web:
Quoting Dan Pupek (Sat, Mar 10, 2001 at 02:49:40PM -0600)
I am pretty new to PHP but have used other scripting languages. I am trying
to use to mkdir() function on an apache server and keep getting this error
MkDir failed (Permission denied). I don't have physical access to the
server.
101 - 120 of 120 matches
Mail list logo