search
HomeBackend DevelopmentPHP Tutorial论PHP的生存与死亡,以及node.js是否会取代PHP!?

回复内容:

.net取代php?java取代php?python取代php?现在到node.js取代php了,可是php依然坚挺,web的市场占有率依然很高,说了多少年了,其他语言能不能来点实际的?就一个wordpress都ko不了,谈何取代? NO. FUCK NO. 只是觉得这个说法有点可笑。
每种语言有各自应用的场景。事实上,大多数语言都可以互相替代,用一种语言写的程序,其实是可以用另一种语言实现的,但语言本身很难被完全代替,青菜萝卜,各有所爱。
php的优势是语法简单易学,学习曲线平滑度可能居所有语言之首。 与PHP 相比,JS 的唯一优势是语法,其他方面都有替代方案。而且在部署并发等等方面PHP 还有优势,JS 的优点和缺点都是单线程多进程,这种模式就像是一把利剑,玩不好会伤了自己,而PHP 就没有这些麻烦。
所以就公司来说选择PHP 的更多,node的流行和程序员的懒惰有关,会了node 我完全对shell 脚本没有兴趣了 各有各的应用场景,谈不上取代,php在做博客,论坛等方面有优势,随便找一个程序就行,而且支持php的虚拟主机也多。
取不取代还是由需求决定的。 严肃的说,我觉得至少目前,更合适的做法是通过nodejs做个中间层,利用nodejs的高并发优势在php与最终页面中间增加个桥,一方面实现彻底的前后端分离,另一方面提高访问性能。

我只能偷偷的告诉你,这不可能!

动不动就喊Node可以取代PHP的人,一般是刚学会Node,然后发现node在某些地方比PHP快,然后就以性能为借口,说PHP low!这种人思想不成熟且幼稚,分析问题不够全面!PHP在web霸主地位,无法取代!

综合的说,双方只能是各有优势互有利弊,没有谁才是最好,只有谁更合适的说法!

不会。
就nodejs那种回调美如画的写法。。。。。 异步回掉? 本人nodejs,但是真不知道在国内什么时候才能大规模的被公司采纳这门语言,取代不了的放心吧,php也不会离开我们的,php很优秀的,
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Working with Flash Session Data in LaravelWorking with Flash Session Data in LaravelMar 12, 2025 pm 05:08 PM

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

cURL in PHP: How to Use the PHP cURL Extension in REST APIscURL in PHP: How to Use the PHP cURL Extension in REST APIsMar 14, 2025 am 11:42 AM

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Simplified HTTP Response Mocking in Laravel TestsSimplified HTTP Response Mocking in Laravel TestsMar 12, 2025 pm 05:09 PM

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

12 Best PHP Chat Scripts on CodeCanyon12 Best PHP Chat Scripts on CodeCanyonMar 13, 2025 pm 12:08 PM

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

PHP Logging: Best Practices for PHP Log AnalysisPHP Logging: Best Practices for PHP Log AnalysisMar 10, 2025 pm 02:32 PM

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

Explain the concept of late static binding in PHP.Explain the concept of late static binding in PHP.Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

HTTP Method Verification in LaravelHTTP Method Verification in LaravelMar 05, 2025 pm 04:14 PM

Laravel simplifies HTTP verb handling in incoming requests, streamlining diverse operation management within your applications. The method() and isMethod() methods efficiently identify and validate request types. This feature is crucial for building

Discover File Downloads in Laravel with Storage::downloadDiscover File Downloads in Laravel with Storage::downloadMar 06, 2025 am 02:22 AM

The Storage::download method of the Laravel framework provides a concise API for safely handling file downloads while managing abstractions of file storage. Here is an example of using Storage::download() in the example controller:

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!