Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Re: File Extraction/Directory Creation


Message #1 by Roger Jacobs <raj@l...> on Sun, 31 Mar 2002 18:03:48 -1000
You could also look at the installation scripts of other PHP programs for ideas. Phorum has an
install script that does everything, you could look at how they handle the ownership issue.
www.phorum.net



From: "Roger Jacobs" <raj@l...>
> Off the top of my head, I think that perhaps you can issue a "chmod" or
> "chown" command to chnage the permissions and ownership on the files.
>
> Roger
>
>
>
> >I am writing an installation for a PHP script, and one thing that
> >installation must do is extract all the files from an archive, sources.tar,
> >so I use:
> >
> >shell_exec("tar -xvf sources.tar");
> >
> >And this works great, files are extracted with the correct structure.
> >However, the owner of the files is such that the user of the site cannot
> >delete the files as he does not own them, which is not going to please
> >website owners.
> >
> >Can anyone come up with a way round this?
>
> --------------ROGER JACOBS - DATA SYSTEMS CONTRACTOR ----------------
> DataSpace Industries                    mailto:raj@o...
> 4491 Rice Street, Suite 102             http://www.omnisphere.com
> Lihue, HI  96766                        See Kauai Products & Services:
>  xxx-xxx-xxxx      FAX-246-4725           http://www.lauhala.com
>
>
>
>
>
>


  Return to Index