TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Should i go for PHP or Node.js?

2 点作者 redxblood大约 11 年前
I need to learn a language to manage requests from a website (eg. login forms), and i have decided for either PHP or Node.js. I know PHP is pretty easy to learn and server-sided. But i wonder if learning something more client-sided like Node had any advantages? I don't mind the difficulty in learning, i just want to know the basic differences and maybe your preferences overall.

3 条评论

byoung2大约 11 年前
I have worked as a PHP developer for almost 10 years now, and I have built some pretty big websites using it (e.g. rushlimbaugh.com, ultimatecoupons.com) but over the past 2 years I have been developing in node.js. I love node because it offers great performance if you have a lot of concurrent connections and I/O, but not a lot of hardware (e.g. an ajax app, websockets). If you are just building a website with some forms, you could probably do it easier in PHP. There are lots of mature frameworks out there for PHP websites (I used Symfony for ultimatecoupons, and EZ Publish for rushlimbaugh). If you are building a rich internet app, I would go with node.
评论 #7361855 未加载
oliverlord大约 11 年前
try PHP first, its easier and fits most of average websites needs. Node.js is more about performance and optimizing big systems.
评论 #7363143 未加载
bennyp101大约 11 年前
node is the server side version of javascript