Thanks everyone! Answers are really helpful! I'll try this "simple_server" snippet.
2009/7/9 Robert Bradshaw <rober...@math.washington.edu>: > > 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? No specific reason. I just thought, may be Sage provide some special way for such communication. > > - 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 -~----------~----~----~----~------~----~------~--~---