[sage-support] Re: twist.py

2009-05-15 Thread Robert Bradshaw
On May 15, 2009, at 7:19 AM, RALPH THOMAS wrote: Robert, please stay with me. I am trying to get this to work on a Linux server setting just to right. Localhost. I need to understand what I am doing. Do I use your script to start a subset of the notebook? One cell. Doesn't this

[sage-support] Re: twist.py

2009-05-15 Thread Mikie
I have this line in my php file - $login_page = file_get_contents(http://localhost:$notebook_server/ simple/Login?username=adminpassword=$password); When I load it, the variables $login_page, $password have nothing in them. I have started the

[sage-support] Re: twist.py

2009-05-14 Thread Robert Bradshaw
On May 14, 2009, at 9:27 AM, RALPH THOMAS wrote: Here is what I put into Sage --- sage: from sage.server.misc import find_next_available_port sage: port = find_next_available_port(, verbose=False) sage: from

[sage-support] Re: twist.py

2009-05-14 Thread Robert Bradshaw
On May 14, 2009, at 12:25 PM, RALPH THOMAS wrote: What I would like to do is have page(form) come up in a browser that would let the user enter a lets say an equation then Sage would solve the equation and show the answer. Or an integral then Sage would calculate the value and display

[sage-support] Re: twist.py

2009-05-14 Thread Robert Bradshaw
On May 14, 2009, at 1:44 PM, RALPH THOMAS wrote: Do you mean this ?php $login_page = file_get_contents(http://localhost:$notebook_server: $notebook_port/simple/login?username=adminpassword=$password' ) preg_match('.*session: ([^]*)', $login_page, $matches) $session = $matches[1] ?