PHP beginners (1)

Source: Internet
Author: User

PHP is a server-side scripting language that is easy to learn and use. With little programming knowledge, you can use PHP to build a truly interactive web site. This tutorial does not want you to fully understand this language, but allows you to join the development of dynamic web sites as soon as possible. I suppose you have some basic HTML (or HTML editor) knowledge and some programming ideas. 1. Introduction PHP is one of the tools that allow you to generate dynamic web pages. PHP stands for Hypertext Preprocessor (PHP: hypertextpreprocessor ). PHP is completely free and free to spend, you can download from PhP official site (http://www.php.net) freely. PHP complies with the GNU Public License (GPL), under which many popular software such as Linux and Emacs are born. You can obtain the source code without restrictions, or even add the features you need. PHP can run on most Unix platforms, gun, Linux, and Microsoft Windows. Information on how to install PHP on a Windows PC or Unix server can be found on the official site of PHP, or you can refer to the topic article "PHP installation full attack backup" on taoba. The installation process is simple. If your machine solves the 2000 problem, PHP will not have any problems! 1.1 three years ago, rasmuslerdorf created the personal homepage tool to create his online resume ). This is a very simple language. More and more people have noticed this language and put forward various suggestions for its extension. With the selfless dedication of many people and the free source code nature of the language itself, it has evolved into a language with rich features and is still growing. Although PHP is easy to learn, it is slower than mod_perl (the Perl module implanted into Web servers. Now we have a new Zend engine that can rival the speed of mod_perl, and PhP4 can make full use of it. Now, the official version of PhP4 has been released. You can download it on the official site of PHP. Andygutmans and zeevsuraki are the main authors of Zend. You can go to the Zend site (http://www.zend.com) to learn more. PHP applications have grown significantly in personal web projects. According to Netcraft's report in October 1999, 931122 domains and 321128 IP addresses use PHP Technology. 1.2php's advanced application of PHP has many advantages. Of course, it is known that PHP is an open-source project with no commercial support, and the resulting execution speed is slow (until PhP4 ). However, the PHP mail list is very useful unless you are running like Yahoo! Or a very popular site Like Amazon.com, you don't feel the PHP speed is different from other websites. At least I don't feel it! Well, let's take a look at the advantages of PHP:-I personally prefer PHP's very simple learning process. Unlike Java and Perl, you don't have to bury your head in more than 100 pages of documents to learn how to write a program. You only need to know some basic syntaxes and language features to start your PHP coding journey. If you encounter any problems during the coding process, you can also read the relevant documents. PHP syntax is similar to C, Perl, ASP or JSP. For those who are familiar with one of the above languages, PHP is too simple. On the contrary, if you know more about PhP, you can easily learn other languages. You only need 30 minutes to master all the features of PHP's core language. You may have a good understanding of HTML, you even know how to use the editing and design software or manually create a good-looking web site. Because PHP code can be easily added to your site, while designing and maintaining your site, you can easily add PHP to make your site more dynamic. -Database connection PHP can be compiled into functions connected to many databases. PHP and MySQL are a perfect combination. You can also write peripheral functions to indirectly access the database. In this way, when you change the database you are using, you can easily change the encoding to adapt to this change. Phplib is the most commonly used base database to provide general transactions. -As mentioned above, the scalability of PHP has entered a period of rapid development. It may be difficult for a non-programmer to extend additional functions for PHP, but it is not difficult for a PHP programmer. -Object-Oriented Programming PHP provides classes and objects. Web-based programming requires Object-Oriented Programming capabilities. PHP supports constructors and extraction classes. -Scalability: traditional web page interactions are achieved through CGI. The CGI program is not ideal for scalability because it opens an independent process for every running CGI program. The solution is to compile the interpreter that is often used to write CGI programs into your web server (such as mod_perl and JSP ). PHP can be installed in this way, although few prefer to install it in CGI Mode. Embedded PHP can have higher scalability. -For better Web programming, PHP developers have developed many popular peripheral base libraries that contain easier-to-use layers. You can use PHP to connect to most databases, including Oracle, MS-access, and MySQL. You can draw pictures on flies, write programs to download or display e-mail. You can even complete network-related functions. The best thing is, you can select the features required for your PHP installation version. The reference to Nissan's Xterra is that PHP can do everything you want and do everything you want!

 

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.