PDA

View Full Version : PHP Script or class, Please!


MegaPIG
10-26-2007, 08:57 AM
It would be nice if I could use a PHP script to generate the OpenLaszlo interface.
I don't like servlet containers! My server does all with only PHP and MySQL.
OpenLaszlo is a great idea and I love it. Please consider this!

caclark
10-29-2007, 05:31 AM
It would be nice if I could use a PHP script to generate the OpenLaszlo interface.
I don't like servlet containers! My server does all with only PHP and MySQL.
OpenLaszlo is a great idea and I love it. Please consider this!

What stops you from:
1) Running a PHP script that streams out the HTML containing the wrapper to load an OL app, and

2) Making a call via a dataset to a PHP controller that does whatever it needs to do behind the scene to retrieve data from MySQL and spew out XML? I'm not a PHP expert, but perhaps use Cake PHP?...


As far as the server side code, OL doesn't care what is servicing the requests it makes. They're HTTP calls to it and you could have drunk monkeys handling the request for all it cares, so long as they return valid XML (for retrieval) or handle the POST for form submission.

Cary

d~l
10-29-2007, 05:41 AM
There was an early initiative here. (http://forum.openlaszlo.org/showthread.php?t=7909)

MegaPIG
11-11-2007, 11:49 PM
@caclark:

Yes, it could be done, but it would be easier to have the app compiled at request time. I already use PHP for server side data retrieval and serving.
My app needs to be changed in many parts based on the user (i.e. access rights)...

@d~l:
Thanks for the information, I'll take a look.