Programming language PHP Advantages in the field of Web development _php Tutorial

Source: Internet
Author: User
Tags gettext what php hosting web hosting
In the eyes of most web developers, ASP and JSP are considered to be the front-runners, while PHP is considered a weak "struggling", or it is a demeaning to the use of the language, not worth participating in enterprise Web Development competition. In my opinion, the reason PHP is not considered a competitor is that the reviewer lacks knowledge of it and does not know about other operating systems for Web development. Contrary to some viewpoints, windows no longer occupies the web

Virtual hosting Services The largest share of the market, I suspect it in the field of web development is also in the city to pull the village.

Why is there no PHP in enterprise development?

Obviously, PHP is considered to be behind ASP and JSP too much, so that it is useless, but this is exactly the same as the fact. PHP is a powerful language in itself. It's actually on every Linux distribution, and also on Mac OS X. It is free to get the artifact (Building-block) tools and software that develop and use PHP code. The Commercial Integrated development environment (commercial integrated development environments,ides) for developing PHP applications can also be found- Such tools have Komodo (which runs on Linux and Windows) and Zend Studio (this application can run on any operating system with Java running environment). The fact that you can run PHP-built sites on almost every web hosting, rather than taking into account what operating system the server is running, makes PHP more appealing.

What can PHP offer?

Forget about what's going on around PHP for a while, and consider what PHP can offer. It is a robust server-side language that provides a considerable amount of functionality and can quickly serve the page.

Easy to use

Any user who uses C or Perl or another language with similar styles and syntax can quickly get started with PHP. Although it is designed to be used on the web, it can also be used as a command-line language. Does the Web application you are writing need to execute some code every hour or every day? Using cron or a similar scheduling manager, you can plan to schedule PHP code to execute when you want it to, and use normal commands to interpret scripts or batch files to execute such code. You do not need to automatically invoke a browser to view a dedicated webpage to execute your event, or rely on a visitor's click to tell your system that a particular code needs to be executed at a particular time. The fact that PHP is extensible in this area is absolutely appealing.

Benefits of PHP

I am not a JSP or an ASP veteran, and I do not want to belittle these languages here. Instead, I'll focus on the benefits of PHP.

Localization

PHP allows you to provide localized services to visitors to your site. When a user clicks into the site, the site automatically provides the page in their native language based on their browser settings. To do this, you do not need to use the chores file for language translation, but rather the same ability to use and localize the C program, implemented through a system called GetText. If the requested language file exists, then the text that the user sees is the native language, and if the language file does not exist, then the text is the default English or any other language that you specify. Many localized UNIX applications use GetText as a standard, making it easy for third-party translators to translate.

Easy to use command line

PHP supports setting up and executing command-line programs where needed. Using the standard UNIX diff tool, it can generate errors between the last modification and the current comment that is to be sent to the wrong owner using e-mail. The PHP code performs a diff on the two files written on the system and regenerates the output as input into an e-mail message to be sent. This email is sent by PHP on its own.

Other benefits

The above is only two of the powerful features I use in my own program, but also other functions. For example, you can:

Create simple Flash animations on the fly. Create PDF documents instantly. Use advanced math features, as well as object-oriented programming techniques. Read and write to local and IMAP mailboxes.

Any standard Internet protocol can be used in PHP. Want to write a PHP-based FTP, Web, or news client? No problem! Using PHP alone, you can create your own protocol by writing clients and servers that use standard TCP/IP sockets.

Encryption is now supported, as well as support for various database servers.

Short-sighted commentary

I think those who are looking for top-notch web development languages to get rid of PHP are extremely sighted. I've been writing code in PHP for many years, whether it's advanced features like the bug tracker, or simply reusing common features like headers and footers, which I've written in PHP. I use PHP to write more than half of static pages, but also write a full-featured multimedia presentation. I'm not the only one who uses PHP. If PHP is not worth noticing, if it's just a pediatric or hobbyist language, why is it the fastest growing language in Web development? If it's not as powerful as an ASP or JSP, why would it be used in traffic-heavy web sites? Yahoo, for example, is said to be built by PHP.

Developers are accustomed to using familiar products

I'm sure the ASP and JSP have their strengths, but I believe people use them not because they can provide more powerful functionality than PHP, but because people already know them and want to write code in their own way. Excluding PHP can only represent ignorance of the language.

http://www.bkjia.com/PHPjc/364157.html www.bkjia.com true http://www.bkjia.com/PHPjc/364157.html techarticle in the eyes of most web developers, ASP and JSP are considered to be the front-runner, and PHP is considered to be a weak struggle, or it is a demeaning to the amateur to use the language, not worth ...

  • 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.