" JamesBritt" <james / jamesbritt.com> wrote in message news:<CIELJOOMCFBDNHLICOEFGECICFAA.james / jamesbritt.com>...

> What does $0 give you?

It gives me the path of the file on the server, something like

/home/francis/my_site/cgi-bin/test.rb

Where I really want to see

http://francis.test.com/cgi-bin/test.rb.