RE: embedded eu scrupting in a eu program?
- Posted by Andy Serpa <ac at onehorseshy.com> Mar 01, 2003
- 650 views
gertie at visionsix.com wrote: > On 28 Feb 2003, at 22:10, mjaksen at subdimension.com wrote: > > > > > I am interested in using euphoria as the embedded scripting language > > of a webserver to be written in euphoria. We already have Peter Blue's > > basic webserver posted in "recent contribs". > > As far as i know, no one has been able to get a cgi script running on a > linux > box but Robert. I've done it on win95. > I had no problems setting up Eu and running scripts on a Linux server. Couple of different ones. > > how do you run a script > > embedded in the web page without starting a new instance of the > > interpreter? > > The bigger problem would be how the browser will run the script. You can > put > anything you want in the webpage. > I'm assuming you are talking about server-side scripting like PHP? In that case, the browser has nothing to do with it -- it is served normal HTML, just dynamically generated by the script at the time of the request. And you probably *would* want a second instance of the interpreter to run the scripts. Forget that the server is written in Euphoria -- if it was Apache you'd be starting up an instance of the interpreter to run a script, right?