1. Linux Webserving Exe
- Posted by "C. K. Lester" <cklester at yahoo.com> Nov 15, 2002
- 448 views
What file would I need to put in my cgi-bin folder in order to have EUPHORIA serve up some data for me? I'd love to serve info from an EDS database or something! BTW, my site is hosted on a Linux box. How would I access it? What would I need to imbed in my HTML for EUPHORIA to give me the data? And how would my EUPHORIA program need to output data? puts()? print()? Thanks for all the help! :) -ck
2. Re: Linux Webserving Exe
- Posted by Rom <kjehas at frisurf.no> Nov 15, 2002
- 450 views
From: "C. K. Lester" <cklester at yahoo.com> > > What file would I need to put in my cgi-bin folder in order to have EUPHORIA > serve up some data for me? This message prove very much the need for proper documentation about using Euphoria for web-programming. To me it was a good help first to install Apache server + MySql + PHP and make it run on my own PC first (Apache is better than MS Personal Web Server I suppose). Rom
3. Re: Linux Webserving Exe
- Posted by irv at take.maxleft.com Nov 15, 2002
- 464 views
On Friday 15 November 2002 11:38 am, CK wrote: > What file would I need to put in my cgi-bin folder in order to have > EUPHORIA serve up some data for me? I'd love to serve info from an EDS > database or something! BTW, my site is hosted on a Linux box. > > How would I access it? What would I need to imbed in my HTML for EUPHORIA > to give me the data? And how would my EUPHORIA program need to output data? > puts()? print()? > > Thanks for all the help! :) Hi CK: This, and Rom's comment about the lack of documentation, looks like an opportunity to write a tutorial. As it happens, I have an upcoming need for a template-driven web-based database app to maintain a database of about 100,000 customers. If that is along the lines of what you want to do, perhaps we could collaborate on this, and turn the discussion into a tutorial? First of all, in my cgi-bin directory, I have pdexu, get.e, machine.e, wildcard.e, strtok.e, database.e -- standard Eu files, with read-only permissions for user apache (pdexu must have read + execute permissions set) demung.e, html.e -- my own file to decode data passed to apache from the user's browser, and routines to help in creating html without having to hard-code it all. (r/o) You can get these files from the RDS website http://www.RapidEuphoria.com/cgi.tar.gz Be sure to create a cgi-errors directory (readable & writeable by all) off your / directory. This is where Eu will write error messages. Download that package and install the files, then try to connect to http://localhost. You have to get that much working before there's any way to write the connections to your database. Regards, Irv
4. Re: Linux Webserving Exe
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 15, 2002
- 438 views
C. K. Lester writes: > What file would I need to put in my cgi-bin folder in order > to have EUPHORIA serve up some data for me? I'd > love to serve info from an EDS database or something! > BTW, my site is hosted on a Linux box. > How would I access it? What would I need to imbed > in my HTML for EUPHORIA to give me the data? > And how would my EUPHORIA program need to > output data? puts()? print()? If you go to the Recent User Contributions page, and use your Web browser to View the Source to contrib.htm, you'll see that there's a <form> ... </form> section for the File Search. Copied below, but it might get messed up with line-wrap... <form method=GET action="cgi-bin/asearch.exu"> <table border=0 cellpadding=0 cellspacing=0 width=600> <tr><td width=80 nowrap></td><td width=120> <font face="Arial, Helvetica" size=+1 color="#990033">File Search:</font></td> <td width=300> <font face="Arial, Helvetica" size=-2> <input type="CHECKBOX" name="dos" CHECKED><font color="#FF8080"><b>DOS</b> </font> <input type="CHECKBOX" name="win" CHECKED><font color="#8080FF"><b>WIN</b> </font> <input type="CHECKBOX" name="lnx" CHECKED><font color="#60EE60"><b>LNX</b> </font> <input type="CHECKBOX" name="gen" CHECKED><font color="#808080"><b>GEN</b></font> </font> <input type="text" name="keywords" size=38> <br><font face="verdana, arial, geneva" size=-2 color="#333333">Type one or more words.</font> </td> <td width=90><input type="submit" value="Search!"></td> </tr> </table> </form> The above HTML code is a form that lets the user specify platforms and keywords. The Euphoria program source that is executed when the user clicks "Search!" is available if you click the "Powered by Euphoria" link. The program name is asearch.exu and it's located in my cgi-bin directory with execute permissions turned on. asearch.exu reads an EDS database containing all the programs in the archive. It outputs the HTML page that the user sees as his search result (one magic line has to be output first, then the HTML page). Suppose the user searches the WIN platform only, for "win32lib derek". Your browser will transmit the URL (see address section of your brower). http://www.rapideuphoria.com/cgi-bin/asearch.exu?win=on&keywords=win32lib+de rek What asearch.exu sees is just the part after the '?': "win=on&keywords=win32lib+derek" This is made available to asearch.exu in the query_string environment variable: getenv("query_string") or maybe getenv("QUERY_STRING") Maybe that will help you to get started. Good Luck. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com