RE: [PHP] reading/writing files outside of web root

2005-02-17 Thread Phil Ewington - 43 Plc
> Jason Wong wrote: > > On Wednesday 09 February 2005 02:31, Richard Lynch wrote: > >> Phil Ewington - 43 Plc wrote: > >> > For some reason user_prefs will not open > >> > for read/write even when I tested it under apache.apache and chmod'd > >> > to 755, > >> > perhaps because /home is owned by ro

Re: [PHP] reading/writing files outside of web root

2005-02-09 Thread Richard Lynch
Jason Wong wrote: > On Wednesday 09 February 2005 02:31, Richard Lynch wrote: >> Phil Ewington - 43 Plc wrote: >> > For some reason user_prefs will not open >> > for read/write even when I tested it under apache.apache and chmod'd >> > to 755, >> > perhaps because /home is owned by root? >> >>

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
On Wednesday 09 February 2005 02:31, Richard Lynch wrote: > Phil Ewington - 43 Plc wrote: > > For some reason user_prefs will not open > > for read/write even when I tested it under apache.apache and chmod'd > > to 755, > > perhaps because /home is owned by root? > > Something went wrong with this

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Richard Lynch
Phil Ewington - 43 Plc wrote: > For some reason user_prefs will not open > for read/write even when I tested it under apache.apache and chmod'd to > 755, > perhaps because /home is owned by root? Something went wrong with this test. You SHOULD have been able to read/write that file in PHP, assumi

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 12:50:59 -, Phil Ewington - 43 Plc <[EMAIL PROTECTED]> wrote: > So my question is can I easily/safely edit files outside of the web root > using PHP or is there a 3rd party command line tool to do this? sudo can assist you with this task. -- Greg Donald Zend Certified Eng

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jochem Maas
Phil Ewington - 43 Plc wrote: Hi All, I am revisiting a previous question posted here as after lots of investigation and code testing I cannot get what I want. I want to use PHP to read/write files that are outside of the web root and not owned by apache. To be specific... $HOME/.procmailrc $HOME/.

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
On Tuesday 08 February 2005 20:50, Phil Ewington - 43 Plc wrote: > So my question is can I easily/safely edit files outside of the web > root using PHP or is there a 3rd party command line tool to do this? Your real question is: "can I easily/safely edit files that [the user running] PHP has no