RE: embedded eu scrupting in a eu program?

new topic     » goto parent     » topic index » view thread      » older message » newer message

mjaksen at subdimension.com wrote:
> 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.
> 

Not to put you off Euphoria, but setting up Apache / PHP / MySQL in 
Windows is not hard. (Look for "PHP Triad" -- installs them altogether 
ready to go.) I've got it on my home machine and use it once it a while 
to serve things up to private parties I might be working with.  One 
thing I should mention is that the second you put on webserver on your 
home machine (I'm assuming you've got broadband) people will start 
trying to hack into it and exploit known vulnerabilities.  This is for 
people doing port scans of the broadband IP's looking for such servers 
(I look in my Apache log when it is running, and there is such an 
attempt every 10 minutes or so).  So set up all the proper security and 
firewalls right away.  If you're only going to allow a few select people 
in, then set up it up so it blocks everyone at the top level without a 
password.

> 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.
> 

I can't think of an easy way to embed Euphoria in an HTML page like with 
PHP.  Euphoria would be more like Perl -- the whole thing is a script.  
You'd just have to use puts() to output the HTML.  It would be easy to 
write a function like the PHP include() that reads in a file and echos 
it to the browser...

-- Andy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu