Web Hosting Talk







View Full Version : a little help with CGI


java_dude
12-20-2003, 02:03 PM
hey, i just need a little help with some cgi stuff. i just wanted to know if i need to change the extension of my pages to .cgi or whatever if i use any cgi coding on a page. Im kinda new to using cgi, and all i wanted to do was make a cgi counter using a script.

thx, java dude

Winkie
12-20-2003, 07:58 PM
It's up to your ISP, it's all in apache directives. Most will be .cgi, some allow .pl aswell (they shouldn't really but that's my opinion)

bear
12-20-2003, 08:43 PM
For a counter, that's sometimes done with SSI (server side includes), when using a PERL/CGI counter (assuming you mean to use PERL).
As long as SSI is allowed on your server, it's a matter of including a tag that calls (and executes) the CGI script, usually located in a dedicated area like 'cgi-bin'. to make an SSI work, you may have to name the page it exists on 'shtml' instead of 'html', to let the server know to parse it for the include(s).

Steven
12-20-2003, 11:00 PM
well u could make a php page and make a simple counter using php