The advantages of PHP in the field of web development

Source: Internet
Author: User
Tags command line diff gettext mail php code what php linux
Web Development

Now, in the eyes of most web developers,. NET and JSP (the first choice for Sun enterprise applications) are considered to be the front-runner, while PHP is considered a weak "struggling", or it is a language that is devalued as an amateur, and is not worth participating in the competition of enterprise web development. In my opinion, the reason that PHP is not considered a competitor is that commentators lack knowledge of it and other operating systems for Web development. There is another possibility: PHP is open source for free, in the business environment means low price!

Virtual Host

The largest share of the service market, I guess it is in the field of web development is also being destroyed city pull.

Why is there no PHP in enterprise development?

Obviously, PHP is considered to be behind the ASP and JSP (Sun Enterprise application preferred) too much, so that it is useless, but this is not exactly the case. PHP itself is a powerful language. It's actually available on every Linux distribution, on Mac OS X as well. Get the widget (Building-block) tools and software for developing and using PHP code for free. The Business Integrated development environment for developing PHP applications (commercial integrated development Environments,ides) can also be found- Such tools have Komodo (it runs on Linux and Windows) and Zend Studio (this application can run on any operating system with a Java running environment). You can almost in every web

Virtual Host

Makes PHP more appealing by running a Web site built by PHP without considering what operating system the server is running on.

What can PHP offer?

Let's forget about PHP for a while and consider what PHP can offer itself. It is a robust server-side language that provides a considerable amount of functionality and is able to quickly serve pages.

Easy to use

Any user who uses C or Perl or another language with a similar style and syntax can quickly start PHP. Although it is designed for use 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, using a normal command interpretation script or a batch file to execute the code. You do not need to automatically call the browser to view a dedicated Web page to perform your event, nor do you need to rely on a visitor's click to tell your system that specific code needs to be executed at a specific time. The fact that PHP is extensible in this area is absolutely appealing.

The benefits of PHP

I'm not a JSP (preferred by Sun enterprise applications) or an ASP veteran, and I don't 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 the user clicks into the site, the site will automatically provide the page in their native language according to their browser settings. This does not require the use of tumultuous files for language translation, but rather the same capabilities that are used with localized C programs, implemented through a system called GetText. If the requested language file exists, the text that the user sees is his or her native language, and if the language file does not exist, the text is the default English or any other language you specify. Many localized UNIX applications use GetText as a standard, making it easy for third parties 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 the difference between the last modification of an error and the current annotation to be sent to the owner of the error by using an e-mail message. The PHP code performs a diff on the two files written on the system, outputting its output as input and regenerating it into an e-mail message to be sent. This email is sent through PHP itself.

Other benefits

It's just two of the powerful features I've used in my program, and other features. For example, you can:

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

You can use any standard Internet protocol 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 a client and server that uses a standard TCP/IP socket.
Implement support for encryption and support for various database servers.

A lack of visionary commentary

I think those who are looking for top-tier Web development languages and get rid of PHP are extremely short-sighted. I've been writing code in PHP for years, whether it's advanced features like bug-tracking systems, or simply reusing common features like headers and footers, I've written in PHP. I used PHP to write more than half static pages, but also wrote a full-featured multimedia demo. 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 on Web development? If it is not as powerful as an ASP or JSP (the first choice for sun enterprise applications), why is it being used on a traffic-heavy web site? Yahoo, for example, is said to have been built by PHP.

Developers are accustomed to using familiar products

I'm sure that ASP and JSP (the first choice for Sun enterprise applications) have their own 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 express ignorance of the language.



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.