When should I use Perl CGI instead of PHP (or vice versa)?

前端 未结 8 1525
悲哀的现实
悲哀的现实 2021-01-07 23:48

For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts

8条回答
  •  粉色の甜心
    2021-01-08 00:03

    I use both Perl and PHP for websites - for historical reasons, mainly Perl at work and PHP at home; I don't think there is a lot to choose between them.

    If your pages are mostly fixed HTML with only a small amount of computation, PHP is a bit easier, because it is embedded in HTML anyway.

    I find PHP a more disciplined, and therefore sometimes more limiting, language than Perl. PEAR is very similar to CPAN - not as big, I think, but then CPAN is so big that it's got a lot of dross in it.

    HTH

    Colin

提交回复
热议问题