That is a very nice idea, thanks a lot I will try this asap :) Cadrach
On Mar 18, 12:31 am, Nouknouk <[email protected]> wrote: > Hi, > > Le 18/03/2010 00:20, Cadrach a crit :> My only pending question is the best > way to send a message from PHP to > > APE (the other way around I have MySQL as bridge which is fine). I see > > in your example you use html include (we could use curl), but the > > thing is: how would you prevent a "bad" user to spam another user (for > > example) by using the exact same URL you did in PHP? > > > I was thinking to test the referer in APE (if possible) to check the > > IP used is localhost, but it does not seem very nice to me, if it > > works. I was wondering about a commandline tool for APE, but did not > > receive any update on this. Do you have a better idea on how to do > > that? > > What about an APE server sockets (namely "sockServer") ? > It is possible to bind it to a specific IP (in your case, localhost). > Thus the socket will remain unreachable except for your apps running > locally on your server (typically your PHP scripts). > > Then, it is quite easy to make your PHP script connect to the APE using > a regular TCP socket and send some data. > > Regards, > > Nouk -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
