On Jul 9, 2009, at 12:55 AM, Minh Nguyen wrote:

> Hi Aleksey,
>
> On Thu, Jul 9, 2009 at 5:33 PM, Aleksey
> Gogolev<aleksey.gogo...@gmail.com> wrote:
>>
>> Hello!
>>
>> Advise needed.
>>
>> I have a PHP site and I have a Sage server. I want to add a new
>> feature to the site, where user can perform some calculations: enter
>> formula, data and then submit the form. Then PHP receives the formula
>> and data.
>>
>> The next step is to send formula and data to Sage from PHP, and
>> receive from Sage calculation results.
>> The question is: What is the best way to send request to Sage? Is the
>> http the only option?

> Such a question has come up before, but in the context of getting Sage
> and Moodle to talk to each other. There has been some progress on
> this, if I remember correctly.

Yes, you could open a pipe with popen and use Sage directly as if  
from the terminal (though the startup time would hit you), or you  
could write an RPC client in Sage (though RPC if often, though not  
always, implemented on top of HTTP) or essentially any other protocol  
both PHP and Python understand.

Almost certainly http://wiki.sagemath.org/simple_server (which is  
actually demos PHP + Sage) is your easiest bet. Is there a specific  
reason you want to avoid HTTP?

- Robert

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to