Is PHP or Perl the right choice for my web project?

I look forward to some suggestions on choosing the “right” language (and modules?) To implement a 1-person web project (only LAMP, complexity somewhere between a guestbook and a full blog, designed for high traffic sites with 50,000 hits per day) based on these requirements:

  • Output cache (think: Wordpress Super-Cache, etc.), completely bypassing the script language when a cached page is present. This is really important.

  • " Website spider " to visit websites and parse HTML, Javascript support will be an advantage

  • Object-oriented processing of multimedia files (mp3, jpg / gif / png, flv / wmv) without writing your own wrappers for everything

  • Ability to encode source script files into something (binary?) That cannot be easily faked

To comply with MVC, I am already considering structures such as Catalyst. My only problem with what I read was that it seems that a native server application is required. Perhaps PHP equivalents have a better way to run applications ...?

When answering, do not just say: “PHP / Perl can do all this and much more,” but please provide a little recommendation for each of these points.

Thank you in advance

+3
7

: .

-: Perl WWW::Mechanize, , - .

- : Perl . CPAN . , PHP .

: . , , , . , .

P.S. -, . Apache FastCGI -.

+12

WWW:: Gungho.

, , , ( " 10 " ). MVC Perl, PHP. Angerwhale:: Cache. , - . , , , . (, - 5 , HTML-.)

+8

Catalyst , . M V C ( Catalyst), , .

, ", ". Catalyst ,

CATALYST_ENGINE=HTTP:Prefork script/myapp_server.pl -p 80

.

+4

Perl PAR . PAR:: Filter modules, . Apache:: PAR PAR mod_perl.

Update: , -, PAR perl ( C), , . PAR perl:

 use PAR;
 use lib "foo.par";             # the .par part is optional
 use Hello;                     # module from the par file.

script, PAR.

, , , . , mod_perl FastCgi .

GrokThis . .

+4

, PHP , , , perl, .

API PHP, CakePHP , , .

- PHP, , Sphider.

PHP, ImageMagick .

php, , manual .

+2

MVC Symfony Cake PHP. .

, 50 000 , . , , , .

. , - ​​, , , . / / .

+2
  • PHP- IONCube, ( -).
  • Perl perl Pcode .
  • , , .
  • PHP does not have video / audio support, whatever that is. You must resort to external tools, such as FFMpeg or MEncoder, to perform internal processing or file statistics.
+1
source

Source: https://habr.com/ru/post/1702646/


All Articles