Good Day All,
Here's what I assume to be an easy question,
Why would one choose to program cgi-bin programs in say Perl, PHP or Python when the same things (... I think) can be accomplished in C++?
Regards
Good Day All,
Here's what I assume to be an easy question,
Why would one choose to program cgi-bin programs in say Perl, PHP or Python when the same things (... I think) can be accomplished in C++?
Regards
turn the question around -- why do it in c++ when you can do it in Pearl, PHP, or Phthon? Each language has its advantages/disadvantages. If you know all those languages then use which ever is easiest to implement the requirement. Some things (ok maybe a lot of things) are easier to implement in one language then another.
CGI scripts can be written in any programming or scripting language that allows it to be executed on your system, such as C, C++, Visual Basic, UNIX shell, Perl, and so on. If you use a programming language such as C/C++, to create your program, you will have to compile it before you can run it. Many people prefer to write CGI scripts, using a scripting language like Perl, instead of programs, since they are usaully easier to debug, modify and maintain than a compiled program.
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++
Thanks for the replies,
If one were creating code or scripts to be executed on an older and slower server, would a compiled program run quicker than an interpreted program?
Yes, but if your server is that old then you need to upgrade it to the 21st century, assuming you have that option.
Last edited by Ancient Dragon; 11-04-2005 at 10:50 AM.