[sage-support] Re: calling sage from PHP

2009-01-14 Thread Robert Bradshaw
On Jan 14, 2009, at 8:36 AM, William Stein wrote: > On Wed, Jan 14, 2009 at 8:13 AM, ben wrote: >> >> Thanks everyone! I am unsure how to use Robert's API as I haven't >> been >> able to find any documentation, but that may be a better idea given >> the security issue that Jason raised. Does a

[sage-support] Re: calling sage from PHP

2009-01-14 Thread William Stein
On Wed, Jan 14, 2009 at 8:13 AM, ben wrote: > > Thanks everyone! I am unsure how to use Robert's API as I haven't been > able to find any documentation, but that may be a better idea given > the security issue that Jason raised. Does anyone know where I could > find some examples of its usage? S

[sage-support] Re: calling sage from PHP

2009-01-14 Thread ben
Thanks everyone! I am unsure how to use Robert's API as I haven't been able to find any documentation, but that may be a better idea given the security issue that Jason raised. Does anyone know where I could find some examples of its usage? Thanks again, Ben On Jan 13, 4:55 pm, "William Stein"

[sage-support] Re: calling sage from PHP

2009-01-13 Thread William Stein
On Tue, Jan 13, 2009 at 7:15 AM, ben wrote: > > Hello, > > I'm trying to communicate with sage using PHP. I want it to calculate > 1+2. I've written this little bash script: > > #!/bin/bash > cd /usr/local/sage-3.2.1 > ./sage -q << END > 1+2 > END > read -p "Press enter to continue" > > which ou

[sage-support] Re: calling sage from PHP

2009-01-13 Thread Marshall Hampton
It may be better to try to use the sage api that Robert Bradshaw wrote but which not many people have explored. Some explanation of it is in the trac patch: http://trac.sagemath.org/sage_trac/ticket/2346 and some discussion at: http://groups.google.com/group/sage-edu/browse_thread/thread/f2935

[sage-support] Re: calling sage from PHP

2009-01-13 Thread Jason Grout
ben wrote: > Hello, > > I'm trying to communicate with sage using PHP. I want it to calculate > 1+2. I've written this little bash script: > > #!/bin/bash > cd /usr/local/sage-3.2.1 > ./sage -q << END > 1+2 > END > read -p "Press enter to continue" > > which outputs: > > sage: 3 > sage: > Exi