Thread: n00b question
View Single Post
Old May 18th, 2006, 2:36 AM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
If you are getting sent to the US goverment census page, well I don't know why, but that is strange. Although one thing I noticed was the action says:

http://cgi-bin/test.cgi

Shouldn't it be -

cgi-bin/test.cgi
??

If it has http://, doesn't it point to a remote location, not back to yoru server? It's the only thing I can think of, and might explain the bizaare gov page problem. I've never used Sambar, I like Abyss (http://www.aprelium.com/). It's really easy and great for testing/development stuff. Also has perl support w/ tutorial.

The difference between *.cgi, and *.pl:

I'm not quite sure, don't think it really matters. The only thign that does matter is the way the server views them. The server has to be set up to see *.cgi or *.pl. Hell I think you could call it *.whocares , just long as the server is set to look for that type. I've never worked with a whole lot of perl, but the only other thing that comes to mind is the first line. I always thought the first line of a .pl file was supposed to point to the cgi-bin or where ever the perl interpreter was. is that what your 'use' line does? Sorry, I've never donme it with a *.cgi extension before.

Sorry I can't be of more help. Hope this helped a little though
Booooze is offline   Reply With Quote