RE: trying to launch kate from the browser....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rene Veerman
> From: Rene Veerman <rene7705@xxxxxxxxx>
> 
> 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 as the webserver.
> In that case, you should (imo) be able to use exec() called with ajax
from
> the browser to startup apps on that machine.

> On Fri, Jan 8, 2010 at 1:49 PM, Ashley Sheridan
<ash@xxxxxxxxxxxxxxxxxxxx>wrote:
>>
>> No, the server is very different from the client, even if they are on
the
>> same machine. I know of no way you can have an HTML link open up
software on
>> your machine. If it were possible, that would open up a whole world
of
>> security issues.
>>
>> What about making the link something like ftp://localhost/somefile
and
>> have an FTP server set up on the same machine. You could set up your
local
>> machine to respond as you wish to the ftp:// link (might be easier to
>> configure in Konqueror)

You might be able to set kate as a helper app in the browser, but you
still have two problems.

A. How do you map the file path from the web server's docroot to the
real path? i.e. can you translate the URL into a real file path?
B. Does the browser user have access rights to that file/directory?

It's probably easier to set up NetBeans with the debugger. That
combination is designed to do what you are asking for.

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux