Go PHP can also

Source: Internet
Author: User
Why is PHP so red?
Recently, PHP (Personal hypertext preprocessor) seems to have become the most widely used web-processing language in the last two years, ╋ its convenience, powerful features and opensource features make it gradually erode to the traditional CGI is even the market for MicroSoft ASP (Active Server Page) ╋ almost every major web site recruit people to PHP as a basic condition.
PHP does have this qualification can be so red ╋ reason has the following points:
PHP is opensource software ╋ completely free ╋ free to spread ╋ so attracts a lot of people to use ╋ also because of this ╋ attracts business companies to develop better engine and optimization software (please refer to http://www.zend.com/).
PHP itself is very easy to understand ╋ simple instruction syntax ╋ plus some basic object-oriented processing ability ╋ let novice enough in the shortest time to learn.
PHP provides a considerable number of features ╋ includes mathematical processing, string processing, network-related functions, support for various databases, image processing capabilities, and a great deal of development for PHP to develop a variety of new features ╋ scalability is excellent.
PHP is very easy to combine with Apache ╋ as the Apache module to use ╋ Setup is quite simple ╋ also because Apache now occupies the Web Server global 60% Market ╋php naturally become the best pairing of Apache.
But ╋ 's theme this time is not PHP's application in Web design ╋ but the application of PHP to shell script ╋ generally known shell script is about TCSH, bash, perl or Python languages ╋ what I'm talking about is the PHP Used as a Shell Script.
Installation of PHP execution files
General PHP as a web processing language is to be compiled into Apache module ╋ here of course not to do ╋ also compile it very simple ╋ as long as the identity of the root of the following actions:
Untie php-3.0.xx.tar.gz.
CD PHP
Configure
Make
After compiling ╋ in the PHP directory has an executable file ╋ file name Php╋ copy it to/usr/local/bin under. Note ╋ If the file is too large ╋ can use the strip instruction to remove unnecessary information from the PHP ╋ so that the file will be much smaller.
First Program
Start writing our first PHP Shell Script ╋ This example prints "Hello world!":

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.