If you are prior PHP5 write your own recursive mkdir function [1] as
posted on this list a while ago.
[1] http://marc.info/?l=php-general&m=121926660406116&w=2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Todd Slack-Moehrle wrote:
Hi All,
I want to make a directory on my web server programatically when my code
to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = "..".$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create the directory fo
Hi,
Well, as your mkdir is saying you can only have 2 parameters, I'm
guessing you're not yet running PHP 5. Also, as 0777 is the default
mode, you can omit this from your code to leave only one argument.
You didn't say the exact error you're getting when you omit the third
argument. My guess i
On Wed, 2008-10-22 at 16:33 -0700, Jason Todd Slack-Moehrle wrote:
> Hi All,
>
> I want to make a directory on my web server programatically when my
> code to create a new user runs.
>
> I am running PHP 5.2.5 on Linux.
>
> I am running:
>
> $dirToCreate = "..".$_SESSION['s_USER_URL'];
> mkdi
On 23 Oct 2008, at 00:33, Jason Todd Slack-Moehrle wrote:
I want to make a directory on my web server programatically when my
code to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = "..".$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create
Hi All,
I want to make a directory on my web server programatically when my
code to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = "..".$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create the directory for the user
$dirToCreate is: ../
> Nope, I have set mine to 755, and it does not seem to be giving me any
> errors. This is the safer way to do it, right?
>
> Alice
Alice,
At this point, you need to re-install the OS or prepare to get your machine
completely hacked and trashed. With your permissions that badly screwed up, it
>
> From: Robert Cummings [EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2008 12:16 PM
> To: Wei, Alice J.
> Cc: Peter Ford; php-general@lists.php.net
> Subject: RE: [PHP] mkdir permission errors
>
> On Tue, 2008-07-15 at 08:16 -0
On Tue, 2008-07-15 at 12:19 -0400, Wei, Alice J. wrote:
>
> From: Robert Cummings [EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2008 12:16 PM
> To: Wei, Alice J.
> Cc: Peter Ford; php-general@lists.php.net
> Subject: RE: [PHP] mkdir permiss
From: Robert Cummings [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 12:16 PM
To: Wei, Alice J.
Cc: Peter Ford; php-general@lists.php.net
Subject: RE: [PHP] mkdir permission errors
On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote:
> This portion
On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote:
> This portion is to answer Rob's question:
>
> [EMAIL PROTECTED] var]# ls -la
> total 92
> drwxrwxrwx 22 root root 4096 2008-06-24 08:34 .
> drwxr-xr-x 21 root root 4096 2008-07-14 08:17 ..
> drwxrwxrwx 2 root root 4096 2008-06-24 08:25 acc
On Tue, 2008-07-15 at 09:06 +0100, Peter Ford wrote:
> Wei, Alice J. wrote:
> > Hi, Rob:
> >
> > I forgot to mention that I have been using yum install.
> > I have reinstalled the entire thing, put back all the packages, and then
> > I went to /var and did a chmod -R 777 var, and then did a
>
Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
> >
> > Do I really have to reinstall the entire Fedora?
>
> You may be a prime candidate for Windows.
Well, you *could* load Fedora on another machine, fully update it, a
On Tue, Jul 15, 2008 at 7:05 AM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
>
> Do I really have to reinstall the entire Fedora?
You may be a prime candidate for Windows.
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, V
Wei, Alice J. wrote:
From: Peter Ford [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 7:28 AM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
-Original Message-
From: Peter Ford
From: Peter Ford [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 7:28 AM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
>
> -Original Message-
> From: Peter Ford [mail
Wei, Alice J. wrote:
From: Peter Ford [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 7:28 AM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
-Original Message-
From: Peter Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July
From: Peter Ford [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 7:28 AM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
>
> -Original Message-
> From: Peter Ford [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 1
Wei, Alice J. wrote:
-Original Message-
From: Peter Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 4:06 AM
To: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
Hi, Rob:
I forgot to mention that I have been using yum install.
I
-Original Message-
From: Peter Ford [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 4:06 AM
To: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
Wei, Alice J. wrote:
> Hi, Rob:
>
> I forgot to mention that I have been using yum install.
&
Wei, Alice J. wrote:
Hi, Rob:
I forgot to mention that I have been using yum install.
I have reinstalled the entire thing, put back all the packages, and then I
went to /var and did a chmod -R 777 var, and then did a
[EMAIL PROTECTED] var]# chown -R apache:apache .
Interestingly, I do
On Mon, 2008-07-14 at 22:09 -0400, Wei, Alice J. wrote:
> > This is the output I have got from using your script.
> > I have made a following quick change:
> >
> > [EMAIL PROTECTED] var]# chown -R root:root .
> >
> > Not surprisingly, I am still not able to make a new directory using PHP
> > with
> This is the output I have got from using your script.
> I have made a following quick change:
>
> [EMAIL PROTECTED] var]# chown -R root:root .
>
> Not surprisingly, I am still not able to make a new directory using PHP with
> the HTTP.
> Could there be anything else I missed?
I knew who you wer
On Mon, 2008-07-14 at 16:45 -0400, Wei, Alice J. wrote:
> Hi, Wolf:
>
> Like I guessed, I am still defined as the root user.
>
> [EMAIL PROTECTED] html]# php test.php
> root
> root/var/www/html
> /var/www/html
>
> This is the output I have got from using your script.
> I have made a following
Alice: Bottom post like everyone else...
"Wei wrote:
> Hi, Wolf:
>
> Like I guessed, I am still defined as the root user.
>
> [EMAIL PROTECTED] html]# php test.php
> root
> root/var/www/html
> /var/www/html
>
> This is the output I have got from using your script.
> I have made a follow
On Mon, Jul 14, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] html]# php test.php
> root
> root/var/www/html
> /var/www/html
Stop testing from the CLI when you need to see results for HTTP then.
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starti
On Mon, Jul 14, 2008 at 4:37 PM, Wolf <[EMAIL PROTECTED]> wrote:
>
> $whoami=system('whoami');
> echo $whoami;
>
> $pwd=system('pwd');
> echo $pwd;
>
> That should tell you what ID you are and the path you are in.
Conversely, so will this method:
--
Dedicated Servers - Intel 2.4GHz w/2TB
]
From: Wolf [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 4:37 PM
To: Wei, Alice J.
Cc: Robert Cummings; php-general@lists.php.net
Subject: RE: [PHP] mkdir permission errors
"Wei wrote:
> Hi, Rob:
>
> I forgot to mention that I have been using yum insta
"Wei wrote:
> Hi, Rob:
>
> I forgot to mention that I have been using yum install.
> I have reinstalled the entire thing, put back all the packages, and then I
> went to /var and did a chmod -R 777 var, and then did a
>
>[EMAIL PROTECTED] var]# chown -R apache:apache .
>
> Interes
et
Subject: RE: [PHP] mkdir permission errors
On Mon, 2008-07-14 at 15:49 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> I did follow the instruction of putting in chown apache:apache htdocs. Now
> when I run the ls -la command, I get this:
>
> [EMAIL PROTECTED] apache]# ls -la
>
On Mon, 2008-07-14 at 15:49 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> I did follow the instruction of putting in chown apache:apache htdocs. Now
> when I run the ls -la command, I get this:
>
> [EMAIL PROTECTED] apache]# ls -la
> total 68
> drwxr-xr-x 15 root root4096 2008-06-24 09:36 .
]
From: Robert Cummings [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:42 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] mkdir permission errors
On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> He
On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> Here is the updated version from the correct command:
>
> [EMAIL PROTECTED] htdocs]# ps awxu | grep -E 'apache|httpd'
> root 30957 0.0 0.5 27576 11016 ?Ss 14:27 0:00
> /usr/sbin/httpd
> apache 30959 0.
PROTECTED]
From: Robert Cummings [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:35 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] mkdir permission errors
On Mon, 2008-07-14 at 15:23 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> This is the output:
>
On Mon, 2008-07-14 at 15:23 -0400, Wei, Alice J. wrote:
> Hi, Rob:
>
> This is the output:
>
> root 31232 0.0 0.0 4120 672 pts/1R+ 15:22 0:00 grep
> apache|httpd
>
> Does this help?
Sorry... my bad, can you do the following:
ps awxu | grep -E 'apache|httpd'
I hav
[EMAIL PROTECTED]
From: Robert Cummings [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:21 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] mkdir permission errors
On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote:
> Hi,
>
&g
On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote:
> Hi,
>
>The apache is running currently on root as the user.
>The parent directory, test, is set to 0755.
These are permissions btw, and not ownerships. Ownerships denote user
and group owners of the directory... specifically the e
On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote:
> Hi,
>
>The apache is running currently on root as the user.
>The parent directory, test, is set to 0755.
>I have no problems making new directories directly from the terminal
> prompt, and it does not give me user execution er
University Bloomington
[EMAIL PROTECTED]
From: Robert Cummings [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 3:07 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: Re: [PHP] mkdir permission errors
On Mon, 2008-07-14 at 15:01 -0400, Wei, Alice J
On Mon, 2008-07-14 at 15:01 -0400, Wei, Alice J. wrote:
> Hi, Guys:
>
>I have a very strange incident here that may seem very stupid. Since the
> power went out last night, I have restarted my server. However, now the
> permission is never working right. I have set the permission of my htdoc
Hi, Guys:
I have a very strange incident here that may seem very stupid. Since the
power went out last night, I have restarted my server. However, now the
permission is never working right. I have set the permission of my htdocs
folder iof my Apache server to 0755, and then started executing
As far as I remember, when I was on shared windows I had something similar
(no access to upload/create folders), the tech guy at the company i was
hosting at changed something in my privileges and it solved it.
You may have no creating privileges.
On 17/06/2008, Wei, Alice J. <[EMAIL PROTECTED]>
set properly?
Alice
==
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]
From: Daniel Brown [EMAIL PROTECTED]
Sent: Tuesday, June 17, 2008 2:54 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subj
On 6/17/08, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> [snip!]
> >
> > This is my PHP code:
> >
> > mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("Cannot create
> directory C:/Inetpub/wwwroot/TPU/test/$
On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
> Hi,
>
[snip!]
>
> This is my PHP code:
>
> mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("Cannot create
> directory C:/Inetpub/wwwroot/TPU/test/$id");
>
> What is strange is that I don't get permission denied erro
Hi,
I have a code here that I am intending to create new directories by creating
a parent and then proceed on to create the children one by one.
I am trying to create directories in the server I am running my script from
as shown in the snippet below. My problem is that although the code se
Bishopsfield Road
Fareham
Hampshire
PO14 1NH
Tel: 01329 815200
Fax: 01329 822483
The content of this e-mail is the sole responsibility of the sender - Fareham
College accepts no responsibility for its accuracy or the vie
Thanks, I thought that might have been it - but It's not... I wrote a
support ticket and - now - I'm able to use mkdir as long as the Directories
are
chmoded to 755+ :)
thanks to all who helped!
In a message dated 8/8/2005 2:16:12 A.M. Central Standard Time,
[EMAIL PROTECTED] write
More than likely, your host has safe mode on. Safe mode is a pain in the
ass if you need to create directories or write to files, but seems to be
the defacto standard for shared hosts using php.
[EMAIL PROTECTED] wrote:
Thanks, but I've tried that when I first got the Error message, it still
Thanks, but I've tried that when I first got the Error message, it still
gave me the error. Thanks though!
In a message dated 8/7/2005 1:29:26 A.M. Central Standard Time,
[EMAIL PROTECTED] writes:
>Open up your FTP client and log into your website, then change the
>permissions on your f
[EMAIL PROTECTED] wrote:
In a message dated 8/6/2005 10:59:44 P.M. Central Standard Time,
[EMAIL PROTECTED] writes:
As far as I know, it's not a shared hosting issue, but a permission issue.
The site admin has not given the user under which your php scripts run
permission to create direct
In a message dated 8/6/2005 10:59:44 P.M. Central Standard Time,
[EMAIL PROTECTED] writes:
As far as I know, it's not a shared hosting issue, but a permission issue.
The site admin has not given the user under which your php scripts run
permission to create directories and most likely files
al Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 06, 2005 8:53 PM
To: php-general@lists.php.net
Subject: [PHP] mkdir, Shared Hosting?
Hi,
I'm using Shared Hosting and I was told - then I learned from trial and
error - that you can't use mkdir on Shared
Hi,
I'm using Shared Hosting and I was told - then I learned from trial and
error - that you can't use mkdir on Shared Hosting... is this *100%* true?
is
there a way around it?
I get:
Warning: mkdir(/home/***/public_html/test/): Permission denied in
/home/***/public_html/test.php on
So your suggestion is that I should create an ftp account and use this
account to create folder structure for user right?
I still not sure about the permission to set.
If I set 0755 how do OS know who is the owner?
May be I think too much. But let say I use ftp account: ftp1 to create
folder st
kids_pro wrote:
Hi there,
I want to create a script.
When user register I want to create a folder :
users\\images
The purpose is that I want to allow them to upload image to this image
folders.
What sort of permission should I give to each folder
Root: users, , and images folder.
The least neces
Hi there,
I want to create a script.
When user register I want to create a folder :
users\\images
The purpose is that I want to allow them to upload image to this image
folders.
What sort of permission should I give to each folder
Root: users, , and images folder.
Regards,
kids
--
PHP Genera
Dear List!
Anyone out there using cPanel?
Perhaps you could instruct me as to how to rebuild PHP, assuming we
have similar file structure,
such that cPanel seems to do.
Many kind regards!
Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
> Hi
>
> I am new to PHP and I'm trying that my script checks if a directory exists
> and
> if not, it should create it. I'm doing it with mkdir() but it returns this
> error message:
>
> Warning: mkdir(0): Permission denied in /xx on line 32
>
> I wonder what kind of permissions should I set.
Hi
I am new to PHP and I'm trying that my script checks if a directory exists and
if not, it should create it. I'm doing it with mkdir() but it returns this
error message:
Warning: mkdir(0): Permission denied in /xx on line 32
I wonder what kind of permissions should I set. This should be do
does not gives your script permission to create subdirectory.
Regards,
-Original Message-
From: Gerben [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 06, 2004 23:39
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mkdir after mkdir
Unfortunately my server has no ftp (but SSH).
It makes much sence
Gerben wrote:
Unfortunately my server has no ftp (but SSH).
It makes much sence what you said, but how can PHP (with uid=48) make a
directory with uid=1042.
both folder are (to be) made the same script, but only one is (with
uid=1042).
This is what makes it very peculiar.
I think I have skip the id
I'm still kind of a newbie at this, but couldn't you accomplish this by
doing each MKDIR separately with a series of ELSE/IF statements. The
basic logic would be:
Check if parent DIR exists.
If not, create one and then go on
If yes:
Check if Child DIR Exists
Unfortunately my server has no ftp (but SSH).
It makes much sence what you said, but how can PHP (with uid=48) make a
directory with uid=1042.
both folder are (to be) made the same script, but only one is (with
uid=1042).
This is what makes it very peculiar.
I think I have skip the idea of creatin
I have those rights since the first dir is created. the problem is that the
2nd is not created
"Daniel Clark" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think PHP and mkdir() is using the web servers rights. So the web
server would need rights to create directories.
>
> >>He
Gerben wrote:
Hello,
I have a problem with the mkdir function.
I'm trying to make a seperate folder every photoalbum. inside I want to
create another folder ('.../thumbnails/') for, you can guess, the
thumbnails.
At first it didn't work at all:
Warning: mkdir() failed (Permission denied) in
/home/
I think PHP and mkdir() is using the web servers rights. So the web server would
need rights to create directories.
>>Hello,
>>
>>I have a problem with the mkdir function.
>>I'm trying to make a seperate folder every photoalbum. inside I want to
>>create another folder ('.../thumbnails/') for,
Hello,
I have a problem with the mkdir function.
I'm trying to make a seperate folder every photoalbum. inside I want to
create another folder ('.../thumbnails/') for, you can guess, the
thumbnails.
At first it didn't work at all:
>Warning: mkdir() failed (Permission denied) in
/home/virtual/sit
The work-around is to create the directory outside of your web application
from your regular account. Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory. Once created with the right owner, you can
man
On Sat, 28 Feb 2004, raisinlove wrote:
> > Surely if there is a work-around then safe mode would not be doing its job
> > properly?
>
> Well this was part of the purpose of my post, before Rasmus explained
> it, I didn't understand why I couldnt access a directory I had created.
> I was hoping for
Surely if there is a work-around then safe mode would not be doing its job
properly?
Well this was part of the purpose of my post, before Rasmus explained
it, I didn't understand why I couldnt access a directory I had created.
I was hoping for a function which would achieve the same purpose but
Rasmus Lerdorf wrote:
This is normal. You are allowed to create the directory because the
directory you are creating it in is owned by the same user id that owns
the script calling mkdir(). However, since your web server runs as some
other user the owner of the newly created dir will be that use
This is normal. You are allowed to create the directory because the
directory you are creating it in is owned by the same user id that owns
the script calling mkdir(). However, since your web server runs as some
other user the owner of the newly created dir will be that user and not
your own so y
On Saturday 28 February 2004 22:47, raisinlove wrote:
> Hi, I'm having trouble understanding why I can create and delete
> directories with my script via mkdir and rmdir, but not simply being
> able to read them with opendir or readdir?
Are you saying that you can create a directory using mkdir()
Hi, I'm having trouble understanding why I can create and delete
directories with my script via mkdir and rmdir, but not simply being
able to read them with opendir or readdir?
For example, when I attempt to access these directories with opendir, I
get this error message:
Warning: opendir(): S
Hi, I'm having trouble understanding why I can create and delete
directories with my script via mkdir and rmdir, but not simply being
able to read them with opendir or readdir?
For example, when I attempt to access these directories with opendir, I
get this error message:
Warning: opendir(): S
[snip]
In my case, I've created a function called mkdirs that recursively
checks and does a mkdir on a given path. So, if any of the folders in a
given path don't exist, then they will get created. I include this at
the top via "include('func/mkdirs.php');". I've used this mkdirs
function in oth
PROTECTED]
Sent: Tuesday, November 18, 2003 11:38 AM
To: Dang Nguyen; [EMAIL PROTECTED]
Subject: RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000
[snip]
mkdirs($directory,0755);
[/snip]
should be
mkdir($directory,0755);
make sure the script has permission to make a directory, most sc
[snip]
mkdirs($directory,0755);
[/snip]
should be
mkdir($directory,0755);
make sure the script has permission to make a directory, most scripts
run as 'nobody' and 'nobody' does not have permission to create a
directory
http://us3.php.net/mkdir
--
PHP General Mailing List (http://www.php.net/)
I have a peculiar problem in one of my scripts. I cannot mkdir from the
script, but from a test script, the same exact code works.
test.php contains:
\n";
mkdirs($directory,0755);
$dir_object = @dir ($directory) or die ("Could not open a directory stream
for $directory");
print_r($dir_object
When trying to create files/directories with PHP, in terms of the system,
who would be the user actually performing those actions?
Would it be the nobody user which runs the apache web daemons? I am trying
to figure out a safe way to make files writeable,
but hopefully chown-ing those files/dirs th
Thank you, Jason!
Quoting Jason Wong <[EMAIL PROTECTED]>:
### On Wednesday 08 January 2003 12:05, [EMAIL PROTECTED] wrote:
### > I have an interesting situation!
### >
### > I get a dir to be made - no problem, but I want it to have the
### permissions
### > 0777. When I look in the directory tha
On Wednesday 08 January 2003 12:05, [EMAIL PROTECTED] wrote:
> I have an interesting situation!
>
> I get a dir to be made - no problem, but I want it to have the permissions
> 0777. When I look in the directory that was just created (blah drwxr-x---)
> are the permissions.
Look at umask().
--
I have an interesting situation!
I get a dir to be made - no problem, but I want it to have the permissions 0777.
When I look in the directory that was just created (blah drwxr-x---) are the
permissions.
This is not acceptable!
Lucy, you got some splainin to do!
Thanks for your help
RW
--
Another option is to use ftp functions.
John W. Holmes wrote:
i had a few problems with mkdir() ane uploading files using php.
i have a simple script, which is making a dir. but everytime, it
makes a dir with totally wrong user. chown wont work.
any expirience with this?? i have found
>i had a few problems with mkdir() ane uploading files using php.
>
>i have a simple script, which is making a dir. but everytime, it
>makes a dir with totally wrong user. chown wont work.
>
>any expirience with this?? i have found some older posts
>considering this, but no re
Hi,
i had a few problems with mkdir() ane uploading files using php.
i have a simple script, which is making a dir. but everytime, it
makes a dir with totally wrong user. chown wont work.
any expirience with this?? i have found some older posts
considering this, but no real answer
The problem is that your webserver is not running as "you"...it's
running under a common user (probably nobody or apache) and that user
does not--and cannot--have access to your folder for security reasons.
You can try creating the directory through ftp via PHP.
Marco
--
php|archit
I have been using the mkdir function sucessfully on my windows test machine, but when
I uploaded my pages to my hosting server (which is linux) I get a permission error
when the mkdir function is called. I know I can create directories because I can do
it fine when I am using ws-ftp uploading p
Hello,
Just a few comments... And no, I'm not Jason :)
"Monty" <[EMAIL PROTECTED]> wrote:
> Hi Jason, I have a follow-up question about mkdir. If the files created by
> mkdir are owned by 'nobody', does that create a security risk for those
> files?
No, not really.
> If so, how does one get aro
Hi Jason, I have a follow-up question about mkdir. If the files created by
mkdir are owned by 'nobody', does that create a security risk for those
files? If so, how does one get around accepting files via an upload form
that are assigned to a user other than 'nobody'?
Monty
--
PHP General Mail
Actualy, you can use chgrp(), but apache must be a member of the group
you are changing to.
Jason Wong wrote:
On Friday 25 October 2002 06:51, Matias Silva wrote:
Hi-ya all, here's a quickie...
In my script I create a directory (mysql.backup.timestamp/) within a
directory called backup/.
On Friday 25 October 2002 06:51, Matias Silva wrote:
> Hi-ya all, here's a quickie...
>
> In my script I create a directory (mysql.backup.timestamp/) within a
> directory called backup/.
> I use the function mkdir("mysql.backup.timestamp", "0777"); and it shows
> the permissions
> as after t
Hi-ya all, here's a quickie...
In my script I create a directory (mysql.backup.timestamp/) within a
directory called backup/.
I use the function mkdir("mysql.backup.timestamp", "0777"); and it shows
the permissions
as after the function executes:
drx--t 2 nobodydaemon1024
mkdir
and uploading!!
Phil
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Phil Powell'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 7:04 PM
Subject: RE: [PHP] mkdir() failed: Permission de
_YOU_ don't need write permissions, the web server does
---John Holmes...
> -Original Message-
> From: Phil Powell [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 28, 2002 4:24 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] mkdir(
ess you close the if () { constructs.
> Ok, I'm confused.. tell me how to make a directory, please.
>
> Phil
> - Original Message -
> From: "Sascha Braun" <[EMAIL PROTECTED]>
> To: "Phil Powell" <[EMAIL PROTECTED]>
> Sent: Saturday, September
[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 4:22 PM
Subject: RE: [PHP] mkdir() failed: Permission denied
> Whatever user your web server is running as needs to have permission to
> write to that directory that you are trying to make the new one in.
; To: [EMAIL PROTECTED]
> Subject: [PHP] mkdir() failed: Permission denied
>
> Ok, I am stuck. I am trying to create a folder in the same directory
as
> process.php and then use
move_uploaded_file($FILES['myImage]['tmp_name'])
> and it constantly fails:
>
> mkdir()
Ok, I am stuck. I am trying to create a folder in the same directory as
process.php and then use move_uploaded_file($FILES['myImage]['tmp_name'])
and it constantly fails:
mkdir() failed (Permission denied)
Here is my code:
$val) {
if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout
1 - 100 of 121 matches
Mail list logo