Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Jochem Maas
Op 1/8/10 1:41 PM, Rene Veerman schreef: > I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/, > LGPL), and want to launch my kate editor when i click in the browser on a > line in my trace-log. > > I'm trying to exec() this line, but it returns 1 (which is i believe a > general

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
hmm. after a nap i'm gonna try to start the editor directly from the browser instead, with ssh:// hopefully to get/write the file on the server.

Fwd: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
-- Forwarded message -- From: Rene Veerman Date: Fri, Jan 8, 2010 at 2:29 PM Subject: Re: [PHP] trying to launch kate from the browser To: Bob McConnell A: str_replace() ;) maybe a preg_replace() but i dont think thats even necessary. B: the sudo (see my last mails) is

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
$str = ''echo "blah" | sudo -u rene -S /bin/sh -c "export HOME=/home/rene/ && export"''; exec($str,$o,$r); $r === 0. $o = array 0 => 'export HOME='/home/rene/'' .more.

RE: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Bob McConnell
From: Rene Veerman > From: Rene Veerman > > Yep, i also just thought of using ssh/ftp to remotely edit files. > I can probably configure any web-browser to open certain links with any > local program. > > But for now, i'd just like to consider the case where the browser is on the > same machine

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
oh, echo "blah" | sudo -u rene -S /bin/sh -c "export HOME=/home/rene/" exec($str,$o,$r); $r === 0. so that works. therefore, it must be kate itself that refuses to start up from apache's context. too bad $o === empty array. any ideas are most welcome.

Fwd: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
-- Forwarded message -- From: Rene Veerman Date: Fri, Jan 8, 2010 at 1:58 PM Subject: Re: [PHP] trying to launch kate from the browser To: a...@ashleysheridan.co.uk Yep, i also just thought of using ssh/ftp to remotely edit files. I can probably configure any web-browser to

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Stuart Dallas
On 8 Jan 2010, at 12:48, Rene Veerman wrote: > Thanks for the reply.. > > I only need this to work locally on the web-server for now.. > > So i'm calling a script through ajax routines, which would do the exec(). > Since it's on the local webserver, that should work, right? No. When the web ser

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Ashley Sheridan
On Fri, 2010-01-08 at 13:48 +0100, Rene Veerman wrote: > Thanks for the reply.. > > I only need this to work locally on the web-server for now.. > > So i'm calling a script through ajax routines, which would do the > exec(). > Since it's on the local webserver, that should work, right? No, the

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
Thanks for the reply.. I only need this to work locally on the web-server for now.. So i'm calling a script through ajax routines, which would do the exec(). Since it's on the local webserver, that should work, right?

Re: [PHP] trying to launch kate from the browser....

2010-01-08 Thread Ashley Sheridan
On Fri, 2010-01-08 at 13:41 +0100, Rene Veerman wrote: > I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/, > LGPL), and want to launch my kate editor when i click in the browser on a > line in my trace-log. > > I'm trying to exec() this line, but it returns 1 (which is i beli

[PHP] trying to launch kate from the browser....

2010-01-08 Thread Rene Veerman
I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/, LGPL), and want to launch my kate editor when i click in the browser on a line in my trace-log. I'm trying to exec() this line, but it returns 1 (which is i believe a general error) echo "hhh" | sudo -u rene -S /bin/sh -c