PHP is a very popular open source server-side scripting language, and most of the sites you see on the World Wide Web are developed using PHP. However, you might be surprised to note that a small number of people swear to be far away from PHP. But it's even weirder to say that they don't use PHP because of some proven language flaws. They decided not to use PHP because of misunderstanding.
Yes, the ones you read are misconceptions.
Let's take a look at these misconceptions:
1. PHP is an object-oriented language, but object-oriented is not completely
This is totally wrong. All programmers who think PHP is not completely object-oriented, especially Java programmers, need a basic training in PHP, and they find a lot of object-oriented features in PHP. For example: interfaces, methods, abstract classes, and so on. I agree that the early PHP version does not support too many object-oriented features, but PHP5 already has strong object-oriented support. And, you'll never think that coding will become so simple in PHP because of the combination of PHP and object-oriented.
So, eliminate this misconception.
2.PHP does not implement specific features
I know this statement is vague, but I can't think of any better way to say it. This is a very vague misconception that developers think PHP does not help them implement features such as memory access or that some of the major PHP distributions do not provide support. But the fact is that PHP is an extensible language, so what you need to do is encode it in C or C + +, and then create the corresponding extension.
In fact, you don't have to do it yourself to create an extension, because there are already hundreds of available extensions. The only thing you need to do is look for them.
3.PHP is not safe.
Another misconception that developers have about PHP is that PHP sites and applications are unsafe. But why would you want it to be safe by default, and why not write secure code? I know there's been a lot of unsafe PHP code here, because the initial learning curve is simple and easy to get started with. So, as a developer, you need to make it as safe as possible.
. NET can help you to be safe by default, and PHP is really missing a lot. But if you're a trained programmer, then you don't actually have the default security help. Include is usually safe, but you need to be careful. If their paths are dynamically generated, a thorough understanding of the instructions can help you make the code more secure.
4. It can not adapt to large applications
Large and complex applications need to be built on their own reliable and high-performance language, which PHP does not have in some way. But if the application architecture you design and develop is stable, why do you have questions about its performance and scalability?
In fact, some of the top sites, such as Facebook, Wikipedia, and Yahoo, are built on PHP, and, as we have thought, these mega sites work well.
5. PHP can only be used for website development
This is also a misconception, although it seems a bit logical, because PHP is the most common language in web development. But there are also things called command-line interfaces that make sure your PHP application can run outside of the Web server.
You may not believe it, but even those applications that depend largely on CPU power can be developed in PHP and run using the PHP CLI.
More importantly, if you want to use PHP to develop desktop applications, don't worry, using Windows specific extensions you can do this.
6. Slow development process
This is a misunderstanding that has been widely circulated. I don't know where it originated from. This rumor may have come from a time when the PHP code was messy and the code was flooded with MySQL statements (they were used as a counter example, but we didn't actually do that). The question is why is the development process slow? When a large number of PHP frameworks appear, you can greatly accelerate the process of development. There is no doubt that you can develop a large program in a short time, no matter how complicated it may be. So, you're not slow in using PHP, especially when you're using a PHP framework.
7. Professional developers do not use PHP
PHP is for beginners, it is designed for those who are not serious developers. These statements are related to the use of PHP. It's just a misunderstanding, and it doesn't make any sense. There are so many Web applications, including some large, that are built using PHP. You can imagine how wrong these statements are.
8. Performance problems
This is a thorny issue. This is not a misunderstanding. Like the coin has two sides, this question is also two aspects. In fact, it's full of junk code, implicit conversions, inappropriate modules, missing operator overloading, and so on, that can affect the performance of a PHP application. But it depends on whether you have the ability to use the language well and use it to write stably and quickly.
Performance is determined by the architecture you design and the code you write!
9. Cheap, no good goods.
This seems to be very logical to stand on the foot, but the use of PHP that is completely misunderstood! In fact, PHP's biggest advantage is his free and open source, which means that most developers who provide application development services must be proficient in it. While free open source can create problems, it also provides a cost advantage for customers who use their services. Compared with the commercial development language, PHP's development costs are low, but this does not mean that its quality is questionable. Work with the right developers to get a more high-performance PHP application.
PHP exaggerated
Is that so? You're just saying that in a casual nonsense. I don't think so, and a lot of developers don't think so.
concluding remarks
This is not the end of all PHP lies. As the PHP language continues to evolve and become more and more powerful, misunderstandings will grow as well. But please don't be fooled by them. Read more, ask more, do it yourself, and then you'll know if it's true.
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.