1.

Solve : CGI backbone question?

Answer»

I am looking at a project that will require CGI scripts, and was wondering should I STICK with PERL or dive into PHP like a friend is suggesting. They state that PHP is far better than PERL for CGI Scripts. Is it better or just personal preference???personal preference. Also, PHP and CGI are different; I don't believe any INSTALL base for PHP installs it as a CGI binary by default. Generally you use a apache module to interpret  PHP scripts.

For example, with CGI, any and all errors give you a "500: Internal Server Error" whereas using an Apache/IIS mod/plugin, you'll get the actual error text.

if you can avoid using CGI, do so. Use a native module for the web server software in the required language.

Aside from that, it's more preference then anything. PHP is in many ways a "subset" of Perl.

And for the last  TIME, It's "Perl" not PERL, every time somebody spells it PERL Larry Wall loses some hair. lol on Perl vs PERL

Yah I saw the module for PHP commented out with the # in Apache config file, and I have "Perl" active. Yah I know the "500: Internal Server Error"...lol...pulled out some hair with it a couple times in the past..lol

I figured it would be preference! I think I will stick with "Perl" to get the project done quickly and correct, and then dive into PHP when I have some free time to make and learn from MISTAKES in PHP.More on the Perl v. PERL thing:

http://stackoverflow.com/questions/72312/how-should-i-capitalize-perl

Also, From "Learning Perl, 4th Edition":

Quote

1.2. What Does "Perl" Stand For?
Perl is sometimes called the "Practical Extraction and Report Language" though it has been called a "Pathologically Eclectic Rubbish Lister" among other expansions. It's a retronym, not an acronym since Larry Wall, Perl's creator, came up with the name first and the expansion LATER. That's why "Perl" isn't in all caps.
You may also see "perl" with a lowercase p in some writing. In general, "Perl" with a capital P refers to the language and "perl" with a lowercase p refers to the interpreter that compiles and runs your programs.


Personally I prefer PHP for my web programming.. although my web server seems to croak on Perl for some reason. (internal server error) I don't think the Apache mod is installed properly...


Discussion

No Comment Found