FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » javascript, XmlHttpRequest, PHP, and daemon
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: javascript, XmlHttpRequest, PHP, and daemon [message #177242 is a reply to message #177236] Thu, 01 March 2012 14:05 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
sl@exabyte wrote:
> Rather than banging my head, I think I shall ask the experts first.
>
> From a web page, using javascript, there is no way to talk and listen to a
> daemon on linux ( I gathered from folks here).
>

There is.

web sockets.

> 1. Using javascript I can send data to a PHP file and wait for it reply (aka
> AJAX).
>
yes.

> 2. Assume that the PHP file is on the same server running the daemon.
>
> Question
> ---------
>
> Can I do this:
>
> I send my data to a PHP file via XmlHttpRequest; the PHP file communicates
> with the daemon and get its reply, after which the PHP will return the
> result to my javascript ?
>
yes.

> Thanks folks (forgive me if it is stupid).
>
>


--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tutorials for PHP Beginners
Next Topic: MAX(id)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:50:54 GMT 2024

Total time taken to generate the page: 0.18919 seconds