Thread: .cgi Vs .pl
View Single Post
Old Jan 15th, 2008, 2:00 AM   #3
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 202
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
Re: .cgi Vs .pl

The extension just tells the server how to handle it. cgi extensions tell it to run the script with whatever program is listed at the top #! line. If the server is not told to do the same with .pl files then it will not know what to do with it.

If you are on an apache server, adding this line to the .htaccess file in the folder will make it parse .pl files through CGI
AddHandler cgi-script .pl
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote