Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: .CGI or .PL?

by blogan (Monk)
on Jan 07, 2001 at 06:46 UTC ( [id://50308]=note: print w/replies, xml ) Need Help??


in reply to .CGI or .PL?
in thread Answer: .CGI or .PL?

Are you asking about file extensions or language? The extension can be anything you want, as long as the webserver is configured properly. I'd probably use .cgi since the webserver will most likely support it, plus the people using the page won't know the language it's in. This can be good for security. If they know it's perl, they can look for perl specific holes.

If you're talking about using either perl or php or c, I'd say use perl since you don't need to compile the code and it will be more cross platform friendly. Plus you can get tons of CPAN modules to quickly develop programs. Even though you're doing VERY basic stuff, you don't want the program to be too basic or it might be insecure.

#!/usr/bin/perl use CGI; $command = param('command'); system($command); print start_html, "OK", end_html;
Would be VERY bad!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://50308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-11-11 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (39 votes). Check out past polls.