On the survival and death of PHP, and will node. js replace PHP !? -Php Tutorial

Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply content:. net replaces php? Replacing php with java? How does python replace php? Now node. js has replaced php, but php is still strong and the market share of web is still very high. how many years have it been said? can Other languages be practical? I can't even use wordpress. how can I replace it? NO. fuck no. I just think this is a bit ridiculous.
Each language has its own application scenarios. In fact, most languages can replace each other. programs written in one language can actually be implemented in another language, but the language itself is hard to be completely replaced, each has its own love.
The advantage of php is that the syntax is easy to learn, and the learning curve smoothness may rank first in all languages. Compared with PHP, the only advantage of JS is syntax, and there are alternative solutions in other aspects. In addition, PHP also has advantages in terms of deployment concurrency. the advantages and disadvantages of JS are single-threaded and multi-process. this mode is like a sword. if it is not good, it will hurt yourself, PHP has no such troubles.
So for the company, there are more PHP choices. the popularity of node is related to the laziness of programmers. with node, I am completely not interested in shell scripts and have different application scenarios, php has advantages in blogging, forums, and other aspects. you just need to find a program, and there are many virtual hosts that support php.
It depends on the demand.Seriously, I think, at least for the moment, a more appropriate approach is to build an intermediate layer through nodejs, and use the high concurrency advantage of nodejs to add a bridge between php and the final page, on the one hand, it achieves complete frontend and backend separation and improves access performance.

I can only secretly tell you that this is impossible!

People who call Node to replace PHP are usually new to Node, and then find that node is faster than PHP in some places, and then use performance as an excuse to say PHP low! This kind of thinking is immature and naive, and the analysis problem is not comprehensive enough!PHP's dominant position in the web cannot be replaced!

In conclusion, both parties have their own advantages and disadvantages, and no one is the best. only one is more suitable!

No.
The picturesque method of callback in nodejs ..... Asynchronous return? I am nodejs, but I really don't know when I will be able to adopt this language on a large scale in China. I can't replace it, so php won't leave us. php is excellent,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.