PHP 或 Perl 是我的 Web 项目的正确选择吗? [英] Is PHP or Perl the right choice for my web project?

查看:23
本文介绍了PHP 或 Perl 是我的 Web 项目的正确选择吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待听到一些关于选择正确"语言(和模块?)以实现单人网络项目的建议(仅限 LAMP,介于留言簿和完全成熟的博客之间的复杂性,为高每天有 50,000+ 次展示的网站)基于以下要求:

I'm looking forward to hear some suggestions for choosing the "right" language (and modules?) to realize a 1-man web project (LAMP only, complexity somewhere between a guestbook and a fully fledged blog, developed for high traffic sites with 50,000+ impressions per day) based on these requirements:

  • 输出缓存(想想:Wordpress Super-Cache 等),当缓存页面存在时完全绕过脚本语言.这个真的很重要.

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

网站蜘蛛"模块访问网站和解析HTML,Javascript支持将是一个优势

"Website spider" module to visit websites and parse HTML, Javascript support would be an advantage

面向对象处理多媒体文件(mp3、jpg/gif/png、flv/wmv),无需为所有内容编写自己的包装器

Object oriented handling of multimedia files (mp3, jpg/gif/png, flv/wmv) without writing my own wrappers for everything

可以将原始脚本文件编码成不易被篡改的东西(二进制?)

Possibility to encode the raw script files into something (binary?) that cannot easily be tampered with

对于 MVC 合规性,我已经在研究像 Catalyst 这样的框架.我所读到的唯一抱怨是它似乎需要自己的服务器应用程序.也许 PHP 等价物有更好的方式来启动应用程序......?

For MVC compliance I'm already looking into frameworks like Catalyst. My only gripe from what I've read is that it seems to require its own server application. Perhaps PHP equivalents have a better way to launch apps...?

在回答时,不要只说PHP/Perl 可以做所有这些以及更多",而是请针对每一个要点提供一点建议.

When answering, don't just say "PHP/Perl can do all this and more" but please provide a little recommendation for each of these points.

提前致谢

推荐答案

输出缓存:两种语言都有出色的缓存解决方案.

Output cache: Both languages have excellent caching solutions.

网站蜘蛛:Perl 有 WWW::Mechanize,最好的此类模块我见过.

Website spider: Perl has WWW::Mechanize, the best such module I've ever seen.

多媒体文件的面向对象处理:Perl 在这方面有优势.CPAN 有各种多媒体文件的模块.PHP 似乎特别缺少对视频格式的支持.

Object oriented handling of multimedia files: Perl has an advantage there. CPAN has modules for all kinds of multimedia files. PHP seems to be missing support for video formats in particular.

编码:两者都必须是可解释的才能执行.我知道两者都有混淆它们的解决方案,但也有反混淆工具.我建议放弃它,这主要会让你自己的生活更加困难.

Encoding: both have to be interpretable to be executed. I know both have solutions to obfuscate them, but there are also deobfuscation tools. I would recommend to just drop that, it mostly makes your own life more difficult.

附言Catalyst 不需要自己的网络服务器,但它确实为 开发目的提供了一个特殊的服务器.通常,您会使用 Apache 或其他支持 FastCGI 的网络服务器来部署它.

P.S. Catalyst does not need its own webserver, though it does offer a special server for development purposes. Normally you would deploy it using Apache or another FastCGI supporting webserver.

这篇关于PHP 或 Perl 是我的 Web 项目的正确选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆