Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: How to assign permissions to directory , programatically


Message #1 by "Amit " <amit_a_deshpande@r...> on 2 Jan 2002 09:52:14 -0000
I think the **clients** directory is on the server.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Nikolai Devereaux" <yomama@u...>
To: "professional php" <pro_php@p...>
Sent: Wednesday, January 02, 2002 5:14 AM
Subject: [pro_php] RE: How to assign permissions to directory ,
programatically


>
> If you're trying to create a directory on the client's machine, you can't
do
> it.  Sorry.  PHP is a server-side scripting language.
>
> If you're creating a directory on your webserver for your user, you can do
> that, but your webserver must be running as a user with the appropriate
> permissions to create the directories in the first place.
>
> Put it simply -- if you can do it while logged in as the webserver user,
you
> should be able to do it with PHP.
>
> It might take some tweaking and potentially unsafe (security-wise) user or
> group permissions settings for it to work.
>
> Good luck,
>
> nik
>
>
> -----Original Message-----
> From: Amit [mailto:amit_a_deshpande@r...]
> Sent: Wednesday, January 02, 2002 1:52 AM
> To: professional php
> Subject: [pro_php] How to assign permissions to directory ,
> programatically
>
>
>
> Hi everybody,
> WISH U ALL A VERY HAPPY AND PROSPEROUS NEW YEAR !!!!
>
> I have a problem of creating a directory on Linux and assign permisions to
> it in **run time**, using PHP.
> Say , when a new client registers , we make a database entry for him and
> create a directory in some name in **clients** directory and want to
assign
> 777 permission to this directory.Please note that **clients** dir has 777
> permissions.How to assign a user to this dir and also the permissions.
Using
> mkdir function isnt working for me. Can anybody shed some light on this ?
>
> Thanks
> Amir Deshpande
>
>
>
>
>




  Return to Index