1. embedded eu scrupting in a eu program?
- Posted by mjaksen at subdimension.com Feb 28, 2003
- 622 views
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". how do you run a script embedded in the web page without starting a new instance of the interpreter? Thanks Mark
2. Re: embedded eu scrupting in a eu program?
- Posted by gertie at visionsix.com Feb 28, 2003
- 545 views
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. > 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. Kat
3. Re: embedded eu scrupting in a eu program?
- Posted by dubetyrant at hotmail.com Feb 28, 2003
- 542 views
>The bigger problem would be how the browser will run the script. You can >put >anything you want in the webpage. > >Kat Kat, This most likely is a dumb question but how hard would it be to actually write an internet browser with euphoria? Wouldn't that be one way to solve the problem? --Jay Dube > > > >TOPICA - Start your own email discussion group. FREE!
4. Re: embedded eu scrupting in a eu program?
- Posted by gertie at visionsix.com Feb 28, 2003
- 538 views
On 28 Feb 2003, at 18:37, dubetyrant at hotmail.com wrote: > > > >The bigger problem would be how the browser will run the script. You can > >put > >anything you want in the webpage. > > > >Kat > > Kat, > > This most likely is a dumb question but how hard would it be to actually > write an internet browser with euphoria? Wouldn't that be > one way to solve the problem? That's a gui problem, talk to Derek.I'd do a http proxy instead, intercepting the Eu code before the browser got it, but that changes the functionality, altho it allows you to use the existing browsers. If you are asking about a plugin like java or javascript, that's beyond me, but i am interested. Kat
5. Re: embedded eu scrupting in a eu program?
- Posted by dubetyrant at hotmail.com Mar 01, 2003
- 541 views
I was reading online about building a browser with java, but I don't enough about it, I'll ask a friend of mine (java guru) about it monday. If nothing else I think it would be a cool thing to try out or learn about. -J.Dube >From: gertie at visionsix.com >Subject: Re: embedded eu scrupting in a eu program? > > >On 28 Feb 2003, at 18:37, dubetyrant at hotmail.com wrote: > > > > > >The bigger problem would be how the browser will run the script. You >can > > >put > > >anything you want in the webpage. > > > > > >Kat > > > > Kat, > > > > This most likely is a dumb question but how hard would it be to actually > > write an internet browser with euphoria? Wouldn't that be > > one way to solve the problem? > >That's a gui problem, talk to Derek.>I'd do a http proxy instead, intercepting the Eu code before the browser >got >it, but that changes the functionality, altho it allows you to use the >existing >browsers. If you are asking about a plugin like java or javascript, that's >beyond me, but i am interested. > >Kat > > > >TOPICA - Start your own email discussion group. FREE!
6. Re: embedded eu scrupting in a eu program?
- Posted by acran at readout.fsnet.co.uk Mar 01, 2003
- 540 views
At 04:47 PM 2/28/03 -0600, you wrote: <snip> >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. <snip> Hello Kat, I am happy ro report that I was able to get a Euphoria CGI script running on a Linux box. I'm not claiming to be be a CGI expert but I guess it was more straight forward for me because I'd written CGI "scripts" in compiled C before. Most "CGI'ers" are Perl addicts or use some sort of M$ "point and clunk" solution. Mind you writing CGI scripts in compiled C is at best, "unusual", or more appropriately, "twisted so far it'll fit backwards both ways (including sideways)". Anyway the proof is in the code - download: http://www.rapideuphoria.com/intphone.zip If you don't like direct links then search the RDS archive with the: intphone keyword. As I recall my intention for posting this code was not the fact that is was a great telephone contact solution (it isn't: bad code and hardly scalable) but that it was an example of how to write Euphoria CGI scripts on Linux. Actually I've just looked at the documentation (dated 24th June 2002: where does the time go?) and I quote: "However, it's main use is to demonstrate using Euphoria as a CGI scripting language." There is a demon in there for sureIf anyone does actually download this code and has any questions then post them to the list (or email me privately). I'll do my best to help and I might even come up with some novel excuses for my bizarre/crazy/mad/hopeless coding technique. Don't hold back folks I need all the (positive) help I can get! Regards, Andy Cranston.
7. Re: embedded eu scrupting in a eu program?
- Posted by Greg Haberek <g.haberek at comcast.net> Mar 01, 2003
- 535 views
has anyone noticed that the word 'scripting' is spelled wrong in the subject line? just pointing this out! :-p ----- Original Message ----- From: <mjaksen at subdimension.com> Subject: RE: embedded eu scrupting in a eu program? Andy -- Exactly, just like PHP but without the 1.5 MB in dll's. I'm talking about doing this from a Windows machine, obviously in Linux the infrastructure is there and I would be using PHP/Apache or (eeew) PERL. I'm more interested in doing this as a sort of P2P project. EY client/server would be prety small (I hope -- some of those include files do get pretty big) and infinitely configurable. Peter Blue's webserver has means to call an external language (or a second instance of EU) or the "EGI" thing, but yeah I really want to embed the thing in the htm like PHP. Seems cleaner. Any ideas? Also useful to "script enable" a EU application. Also good for wrapping fish and lining birdcages. PS- anyone know the overhead to running a EU instance? Worth it to run multiple servers (diff ports) in seperate processes or mulitask them through the same exw? PPS - wrote a "web browser" in VB some 6 years ago. This was before all the really neat freeware browsers and I needed an anonymous multi-media browser for a PR project. Kinda sucked but it did work and suitable impressed the (not so smart) client. Point is: why would you want to do this unless you wanted to add weird searching or crypto tuff -- in which case I would set up a local proxy server to mediate between standard browser (ob1.exe ?) and custom server. Written in EU anyone? Thanks Mark TOPICA - Start your own email discussion group. FREE!
8. Re: embedded eu scrupting in a eu program?
- Posted by dubetyrant at hotmail.com Mar 01, 2003
- 555 views
>From: Greg Haberek <g.haberek at comcast.net> >Subject: Re: embedded eu scrupting in a eu program? > > >has anyone noticed that the word 'scripting' is spelled wrong in the >subject line? >just pointing this out! :-p > Probably because the "u" is next to the "i" on the keyboard
9. Re: embedded eu scrupting in a eu program?
- Posted by "Carl W." <euphoria at cyreksoft.yorks.com> Mar 03, 2003
- 560 views
Andy Serpa wrote: > gertie at visionsix.com wrote: > > 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. While I work for the ISP that runs my cgi scripts, giving me a little more freedom to set things up, setting up Euphoria on a server to run CGI is a piece of cake - No changes were made to the internal config of the server to make it run. Just upload a copy of the PD exu interpreter to your cgi-bin and make the first line of the script: #!/path/to/webspace/cgi-bin/exu Make sure the permissions on both exu and your script are set so that both are executable for everyone. Also make sure the extensions to your Euphoria cgi scripts are understood by the server - an average server won't know whether '.exu' is a legal cgi extension. Use '.cgi' instead - most servers understand this. Proof of concept can be found at: http://www.cyreksoft.yorks.com/eu.cgi The script reads and prints its own source. > > > 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. Most languages that can be embedded in webpages and run server-side (PHP, Perl, Ruby etc.) have a module that is installed for use with Apache or a DLL that is installed for use with MS IIS. Since there's no such thing as 'mod_euphoria', or 'rdseuph.dll' it would be up to Rob C. to create them. Imagine being able to: <b>Calculate and print the value in italic:</b> <[eu] integer i i = 2 i += 2 printf(1, "<i>i = %d</i><br>\n", i) [eu]> <b>Done!</b> And print something like: Calculate and print the value in italic: i = 4 Done! Carl -- [ Carl R White == aka () = The Domain of Cyrek = ] [ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]
10. Re: embedded eu scrupting in a eu program?
- Posted by gertie at visionsix.com Mar 03, 2003
- 525 views
On 3 Mar 2003, at 11:08, Carl W. wrote: > > Andy Serpa wrote: > > > gertie at visionsix.com wrote: > > > 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. > > While I work for the ISP that runs my cgi scripts, giving me a little more > freedom to set things up, setting up Euphoria on a server to run CGI is a > piece of cake I lost a job because it wasn't set up after months of discussing it on this listserv, and in the irc channel. It not only didn't work, there were rumors that shell itself crashed because we used a socks interface. Kat
11. Re: embedded eu scrupting in a eu program?
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Mar 03, 2003
- 533 views
>From: gertie at visionsix.com >Subject: Re: embedded eu scrupting in a eu program? > > >On 3 Mar 2003, at 11:08, Carl W. wrote: > > > > > Andy Serpa wrote: > > > > > gertie at visionsix.com wrote: > > > > 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. > > > > While I work for the ISP that runs my cgi scripts, giving me a little >more > > freedom to set things up, setting up Euphoria on a server to run CGI is >a > > piece of cake > >I lost a job because it wasn't set up after months of discussing it on this >listserv, and in the irc channel. It not only didn't work, there were >rumors that >shell itself crashed because we used a socks interface. No, that was because jbrown was playing around with a stupid BASH script.
12. Re: embedded eu scrupting in a eu program?
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Mar 04, 2003
- 523 views
On Mon, 3 Mar 2003 11:08:58 -0000, "Carl W." <euphoria at cyreksoft.yorks.com> wrote: >[ Cyrek the Illogical /\ www.cyreksoft.yorks.com ] Clean lines, ecletic and select content; one cool, and rather amusing site - I love it! Pete