Re: Valid Euphoria Web Page?

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

Try this:

#!exu

puts(1,"Content-type: text/html\n\n")--; charset=iso-8859-1\n\n")
puts(1,"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.1//EN\">\n\n")

puts(1,"<html>\n")
puts(1,"<head>Header</head>\n")
puts(1,"<body>Hello</body>\n")
puts(1,"</html>\n")
--code ends

I can't test it since I don't use Apache(I use my CJBN webserver).

cklester wrote:
> 
> Shouldn't this work from an Apache server on Linux? I'm getting
> the mysterious "Premature end of script headers:" error message.
> 
> How do I troubleshoot this? Thank! :)
> 
> --code starts below
> #!exu
> 
> puts(1,"Content-type: text/html; charset=iso-8859-1\n\n")
> puts(1,"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.1//EN\">\n\n")
> 
> puts(1,"<html>\n")
> puts(1,"<head>Header</head>\n")
> puts(1,"<body>Hello</body>\n")
> puts(1,"</html>\n")
> --code ends
> 
> -=ck
> "Programming in a state of EUPHORIA."
> <a
> href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu