[LON-CAPA-users] LON-CAPA and php?

Todd Ruskell lon-capa-users@mail.lon-capa.org
Mon, 31 Mar 2008 16:48:13 -0600


Gerd Kortemeyer wrote:
> Hi,
> 
> On Mar 31, 2008, at 5:43 PM, Todd Ruskell wrote:
>> We would primarily use the retrieval of parameters and setting of hidden
>> variables.  The code also used to talk to a database for storage and
>> retrieval of some information.  The author is willing to either use
>> communication with his own database within the mysql installation on our
>> library server, or hard-code information in problems if we can't talk to
>> the database.
> 
> Please don't put anybody's MySQL database on a LON-CAPA machine and run
> foreign code. This also conflicts with the idea of offloading users to
> other machines, and with any LON-CAPA resources running on any server in
> the network.

That's kind of what I figured.  I'm pretty sure we can stay away from this.

> We can look at the examples and see how to emulate that within the
> existing structure of LON-CAPA. LON-CAPA problems can easily set hidden
> variables and retrieve form values, using the existing structure, and
> store stuff in our database. That would then run across the network.
> 

Yep, we're taking a look at Robley's sample code.  It seems it should be
pretty straight-forward.

Thanks,

Todd

-- 
Dr. Todd Ruskell
Senior Lecturer, Department of Physics       Office:  Meyer Hall 326
Colorado School of Mines                     Phone: 303-384-2080
1523 Illinois Street                         Fax: 303-273-3919
Golden, CO 80401