Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

.cgi versus .pl

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
SpaceshipSpaceship
Watch

JYM

Established Member
Impact
64
What is the difference between the file extensions .cgi and .pl?

I recently uploaded a script which was in .cgi and it worked on my site the first time I refreshed it, but since then it has stopped working. I renamed to .pl and it works. What is the difference between these two? I'm under the impression that they are two similar/identical extensions that are used on different servers.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CGI is comman gateway interface script

whereas

PL is a PERL program file if im not mistaken
 
0
Close
they are both similar it depends which mime type are executable as set by your server admins.
 
0
Close
Both are typically used for perl scripts. What matters is if your web server is setup to recognize both as executable CGI.

If the .cgi extension is not working, you could try adding this to your .htaccess file-

AddType application/x-httpd-cgi .cgi .pl
 
0
Close
huh cgi and pl are the same... learn something new everyday.

i know that .pl is PERL, but my noobiness always led me to believe that .cgi was a different language in itself... X_X

thanks for clearing that RJ
 
0
Close
PL is normally used as a Perl Library file... A file with common sub-routines included in one or more Perl scripts.

PL scripts can execute the same as CGI scripts provided the webserver is configured to recognize them as executable.
Along these same lines, any extension could potentially be a Perl script, provided the extension is added to the webserver's config.

-Nitro
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back