I have this line in my php file
-------------------------------------------------
$login_page = file_get_contents("http://localhost:$notebook_server/
simple/Login?username=admin&password=$password");
When I load it, the variables $login_page, $password have nothing in
them.
I have started the twist.py server and it is running OK.
----------------------------------------------------------------



On May 15, 2:45 pm, Robert Bradshaw <[email protected]>
wrote:
> 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 stop your notebook(sage: nb.dispose()
> > ) Or do I use the notebook in Sage.
>
> The script in twist.py
>
> 1) starts up the server
> 2) uses the server to do some computations
> 3) quits the server
>
> Typically, you'd be doing (1) and (3) manually, and the PHP script  
> would just do (2).
>
> > Then try the php script.  I want to do the caluclation in the php/
> > html page.  Interact with Sage.
>
> > I don't see how the php script below will do this?
>
> The script below is just the very first part of the interaction.  
> Perhaps a diagram will make things clearer. What you want is
>
> [web browser] <--- (A) ---> [your php script] <--- (B) ---> [Sage]
>
> You do (A) as you would any PHP script, using forms, $_REQUEST, and  
> printing output. To do (B) you simply request a URL (i.e. open the  
> url and read its contents) and parse the result.
>
> > Could you give me a php script that will allow the user to interact?
>
> I've been meaning to write a demo script in PHP to do this from the  
> moment I wrote twist.py. There have just been a lot higher priority  
> things on my todo list for over a year now...
>
> > I am truely a sage notice(1 month).  I did howerver get Linux,  
> > Sage,and Moodle installed in one week on an old P4.
>
> It would be cool to see Sage and Moodle working together.
>
> - Robert
--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to