Re: Apache, Euphoria, and include files

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

Hi Greg,

         The include must contain the exact path to the include file, not=
=20
only include html.e
In my case:

include /usr/local/euphoria/include/html.e

Also be carefull with the permissions.

I=B4m using Apache and Euphoria CGIs, under FEDORA.

Good luck

Rubens

At 15:25 30/5/2004, you wrote:
>
>
>posted by: Greg Haberek <ghaberek at wowway.com>
>
>
>Ok, so I've installed RedHat 9.0 (text-mode) on my laptop for testing=20
>purposes.
>I setup Apache 2.0.4 and installed Euphoria 2.4. I wrote a quick little sc=
ript
>and threw it into the /var/www/cgi-bin directory.
>
>}}}
<eucode>
>#!/euphoria/bin/exu
>
>constant text =
>     "Content-type: text/html\n\n" &
>     "<HTML>\n" &
>     "<HEAD>\n" &
>     "  <TITLE>Hello World!</TITLE>\n" &
>     "</HEAD>\n" &
>     "\n" &
>     "<BODY>\n" &
>     "  <CENTER>\n" &
>     "    <H1>Hello World!</H1>\n" &
>     "  </CENTER>\n" &
>     "</BODY>\n" &
>     "\n" &
>     "</HTML>\n"
>
>puts(1, text)
></eucode>
{{{

>
>So, there you have it, a simple "Hello World!" page. No problem, right? Ri=
ght.
>Here's my problem: I'm trying to write a little library to assist me in my=

>HTML endeavors, called html.e. If I insert a line "include html.e" then=
=20
>the script
>doesn't run. Instead, from my web brower (on another computer on my networ=
k)
>I get a "Server error!" "Error Message: Premature end of script headers:=
=20
>test.exu"
>I've looked through Rob's code for asearch.exu (for the Archive) and he=
=20
>has plenty of
>include files, so where am I going wrong? If I have no inlude files the=
=20
>script runs fine,
>the second there is an include file the script crashes.
>
>~Greg
>www.finalphasesoftware.com
>
>--^----------------------------------------------------------------
>This email was sent to: rml at rubis.trix.net
>
>EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dd66.b4qFOM.cm1sQHJ1
>Or send an email to: EUforum-unsubscribe at topica.com
>
>For Topica's complete suite of email marketing solutions visit:
>http://www.topica.com/?p=TEXFOOTER
>--^----------------------------------------------------------------

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

Search



Quick Links

User menu

Not signed in.

Misc Menu