Help anyone?

On 31 mai, 21:47, Nicolas <[email protected]> wrote:
> Hi,
>
> This must be very simple, but I can't make it work. I don't manage to
> get any answer from an inline push.
>
> On a PHP file, I write something like many examples I have found
> online:
>
>     $data =
> file_get_contents($APEserver.rawurlencode(json_encode($cmd)));
>     $data = json_decode($data);
>
> On the APE server, I have registered a command that works fine. It
> does receive the signal from the PHP file. However, I added this line:
>
> info.sendResponse('custom_raw', {'foo':'bar'});
>
> so that it sends back an answer to the calling PHP file.
>
> In the PHP file, I tried to find out what was in $data, but it seems
> to be completely empty.
>
> What am I doing wrong?
>
> Is it info.sendResponse() that fails, PHP no receiving anything or me
> failing to see what is in $data?
>
> Thanks in advance for your help.
>
> Nicolas.

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