Talking about the future of PHP

Source: Internet
Author: User
Tags php database php software owncloud
The ownCloud project led by frankkarw.schek, a German Open-source PHP software developer, is one of the largest open-source projects written in PHP. He mentioned the following when talking about why PHP is selected. Universality: ownCloud aims to allow everyone to host their own ECs instances. PHP is widely used in Web servers and operating systems.

The ownCloud project led by Frank karw.schek, a German Open-source PHP software developer, is one of the largest open-source projects written in PHP. He mentioned the following when talking about why PHP is selected. Universality: ownCloud aims to allow everyone to host their own ECs instances. PHP is widely used in Web servers and operating systems.

Why PHP?

The ownCloud project led by Frank karw.schek, an open-source software developer in Germany, is one of the largest open-source projects written in PHP. He mentioned the following when talking about why PHP is selected.

Universality:OwnCloud aims to allow everyone to host their own ECs instances. PHP is widely used in Web servers and operating systems. The advantages of the platform allow users to easily deploy PHP.

Versatility:As a scripting language, a server tar file can run on all platforms without complex additional compilation.

Low Threshold:Most programmers are familiar with PHP, And it is relatively easy to learn PHP even for users with no basic knowledge.

Lightweight and powerful:If used properly, PHP runs fast and has powerful functions. Wikipedia, Facebook, WordPress, and other large Web applications are all written in PHP.

Rich resources:PHP has a huge development ecosystem, including class libraries, components, connectors/drivers, etc. Using it is like standing on the shoulders of giants.

PHP Deficiency

But even if PHP has these bright advantages, Frank also points out that it hasWeaknesses.

Security:As a product of 1990s, its security performance was not reassuring. After all, people's security awareness was naive at that time.

Compile time/runtime configuration:Call. /configure scripts compile PHP as you wish. It sounds interesting, but if you think differently, we need to view other people's script configurations word by word during maintenance, which is not so beautiful.

Conflicting functions and class names:It is an underline for the moment, while it is a camper name for the moment. Some features can be process style, object-oriented interface style, or even both.

Static type:PHP can do better with static types.

The future of PHP

Recently, Apple's new development language Swift has touched Frank. Does the language need to be backward compatible or completely innovative when it is updated? However, if Perl and Python are not compatible with each other, you may not want to see them. For this, FrankThe future of PHPPut forward your own ideas.

Security:Discard _ Get, _ Post, and _ SERVER, and introduce an appropriate API to filter data input.

Database:PHP database support APIs are too rich. However, some APIs are outdated or even outdated. Frank recommends that you standardize the interface to form a unique object-oriented interface. PDO is his first attempt.

32-bit/64-bit:When running PHP with 32-bit or 64-bit values, people may find the difference in the running of integer data in particular. It is necessary to eliminate the differences between different types of systems.

Remove traditional concepts such as save_mode and open_basedir,Use unicode characters.

Remove most of the compilation and runtime configuration options:All next-generation PHP runtime environments should be as unified and stable as possible.

Type:The introduction of optional static types is certainly very exciting. In this case, a variable can be defined as a Boolean OR integer. If a variable is incorrectly used, an exception is thrown.

Huide Control Network original address: http://www.evget.com/article/2014/11/19/21834.html

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.