Modified HTTPD

Q&A's, tips, howto's
grable
Posts: 23
Joined: Thu Jun 16, 2005 1:14 am
Location: Norway

Post by grable »

Made the cgi processor take lisp code spaned over multiple statements..

eg:

Code: Select all

<% (for (x 0 5 1) %>
	<b><%= x %></b><br>
<% ) %>
more like real server pages does it ;)
now, its a little bit slower this way i imagine, since it converts that to several (print) statements and then evals it.

I havent tested it fully, but it works on my small test samples..

anyhow, im updating the downloads with the new code so you can try it for yourself =)

ftp://anonymous@grable.cjb.net/grb_httpd.rar
http://grable.cjb.net/grb_httpd.rar <-- may not be up 24/7

UPDATE:
allso the wiki needed a minor adjustment.. you can grab it here
or fix it yourself, its just to add 1 line of code

just go to the bottom of the file "index.cgi" and change the code to this

Code: Select all

;; take parameter as page name and display it
(set 'link QUERY_STRING)
(if (or (= link "") (not link))
  (display-page "Home")
  (display-page link)
)
(throw) # <--- this line
grable

grable
Posts: 23
Joined: Thu Jun 16, 2005 1:14 am
Location: Norway

Post by grable »

I setup a small page for future projects and the HTTPD, to stop bothering this forum with my minor updates ;)

http://grable.cjb.net

and downloads have been updated to
http://grable.cjb.net/downloads/grb_httpd.rar
http://grable.cjb.net/downloads/moded_wiki.rar
grable

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

grable wrote: http://grable.cjb.net
From my IE I get no response on this link.
Loading endless.
The download links works fine!
Hans-Peter

grable
Posts: 23
Joined: Thu Jun 16, 2005 1:14 am
Location: Norway

Post by grable »

Damit, i allways forget to check with IE ;)

Thanks again for letting me know =)

il look into it. heheheh

UPDATE:
Seems there is some issues with the wiki and the asp syntax,
but I think ive fixed it now though.
grable

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

Everything runs fine now!
;-)
Hans-Peter

Locked