Go PHP can also be _php tutorial

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 past two years Linux/unix, and its convenience, powerful features and ╋ features make it increasingly eroding into traditional CGI is even the market for MicroSoft ASP (Active Server Page) ╋ almost every major website recruit talent to use PHP as the basic condition.
PHP does have this qualification can be so red ╋ reasons for the following points:
PHP is opensource software ╋ completely free ╋ can be freely scattered ╋ so attracts a lot of people to use ╋ also because ╋ attracts commercial companies to develop better engine and optimization software (refer to http://www.zend.com/).
PHP itself is very easy to understand ╋ simple instruction syntax ╋ plus some basic object-oriented processing power ╋ let novice enough in the shortest time to learn.
PHP provides a considerable amount of functionality ╋ includes math processing, string processing, network-related functions, support for various databases, image processing, and a large number of development people are developing a variety of new features for PHP ╋ extensibility 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 match for Apache.
But the topic ╋ this time is not the application of PHP in Web design ╋ but rather the application of PHP in shell script ╋ generally known shell script is about TCSH, bash, perl or Python these languages ╋ all I'm going to talk about is PHP Used as Shell Script.
Installation of PHP execution files
Generally PHP as a web processing language is to be compiled into Apache module ╋ here of course not to do ╋ and therefore compiled very simple ╋ as long as root as the following actions:
Untie php-3.0.xx.tar.gz
CD PHP
Configure
Make
After compiling ╋ in the PHP directory there is an executable file ╋ file name Php╋ copy it to/usr/local/bin. Note ╋ If the file is too large ╋ you can use the strip instruction to remove unnecessary information from the PHP method ╋ so the file will be much smaller.
First Program
Start writing our first PHP Shell Script program ╋ This example prints "Hello world!":

http://www.bkjia.com/PHPjc/631882.html www.bkjia.com true http://www.bkjia.com/PHPjc/631882.html techarticle php How so Red recently PHP (Personal hypertext preprocessor) seems to have become the most widely used in the last two years Linux/unix the Web processing language ╋ It's convenient, strong merit ...

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