Hi there, 1) If you trying to send the response to same channel then the pipe would be available in cmd object. You can byepass all the overload 2) By invoking php script do you want to push or pull data? You can push data using inlinepush Cheers
On Jun 17, 5:55 pm, Manas B <[email protected]> wrote: > Please see this > discussionhttp://groups.google.com/group/ape-project/browse_thread/thread/a6eee... > > On Jun 17, 5:50 pm, elie <[email protected]> wrote: > > > Hello everyone ! > > > I have a question: what can i do to invoke a php script from APE > > Server? > > > Is it possible to do : > > > Ape.registerCmd( 'testCmd', function(params, cmd) { > > > var channel = Ape.getChannelByPubid(params.pipe); > > var response; > > var request = new Http('http://localhost/server/index.php'); > > > request.getContent( function(result){ > > response = ... > > }); > > > channel.pipe.sendRaw( 'alertClient', {'text':response}); > > //channel.pipe.sendRaw('alertClient', {'tex't:'Pushed'}); // this > > line is ok ! > > > }); > > > Help please, help ! what can i do to invoke a php script from my APE > > Server ? -- 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/
