Thank you Manas for your quick answer.

I saw the discussion but my problem is in another way

Ape.registerCmd( 'testCmd', function(params, cmd) {

 var channel = Ape.getChannelByPubid(params.
pipe);
 var response;
 var request = new
Http('http://localhost/server/index.php'<http://localhost/server/index.php%27>
);

 request.getContent( function(result){
    channel.pipe.sendRaw( 'alertClient', {'text':response}); // i have
nothing on the client side !!!!! have you any idea ?
 });


  //channel.pipe.sendRaw('alertClient', {'tex't:'Pushed'}); // this line is
ok !
});


2010/6/17 Manas B <[email protected]>

> Please see this discussion
>
> http://groups.google.com/group/ape-project/browse_thread/thread/a6eee2aeb4ba9eba
>
> 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'<http://localhost/server/index.php%27>
> );
> >
> >   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]<ape-project%[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/
>



-- 
Elie Louison NZICKOU MAKANY
9 rue du recteur Daure
Cité Erik Satie 3B33
14000 Caen
http://www.makany.fr

-- 
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/

Reply via email to