Hi!
Despite of the possibility of sending through http to PHP or otherscripts, I´d 
really love to see some sort of "exec" command in APE,in which you could 
execute system/shell commands.Like in node.js you can do:var sys = 
require("sys");sys.exec("sudo myuser foo.sh", function(err, stdout, stderr){   
if (err) sys.puts(err);});  Timo
btw.: If you don´t know node.js yet, I really really recommend you take a look 
at it.  


--- Nouknouk <[email protected]> schrieb am Do, 18.3.2010:

Von: Nouknouk <[email protected]>
Betreff: Re: [APE Project] APE and php
An: [email protected]
Datum: Donnerstag, 18. März, 2010 15:30 Uhr

Hi,

the APE server can do HTTP requests, so you can use this feature to call a PHP 
'page' on you webserver. Of course, it would be better to add a way to ensure 
the page is called from the APE server (and not a visitor of your website for 
example).

You may want to look at the file 'scripts/framework/Http.js' in the server 
package: there are several examples of code to show how to use the Http class, 
like this one:

    var request = new Http('http://twitter.com:80/statuses/update.json');
    request.set('method', 'POST');

    // GET or POST data
    request.writeData('status', 'Hello!');

    // HTTP Auth
    request.set('auth', 'user:password');

    request.getContent(function (result) {
        Ape.log(result);
    });


Regards,

Nouk²

Le 18/03/2010 13:09, Vinz a écrit :
> Hi,
> 
> APE can be invoked by PHP using inlinepush... but does PHP can be
> invoked by APE ?
> 
> Example, APE Server receive a command, it execute a php script (or a
> shell script) ?
> 
> Thanks!
> 
>    

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


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 

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

To unsubscribe from this group, send email to 
ape-project+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to