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
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.
-- 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
$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.
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
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.
-- 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
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
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
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?
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
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
12 matches
Mail list logo