Some tips on PHP

Source: Internet
Author: User
PHP is a server-side scripting language embedded in HTML. The difference between PHP and client Javascript is that it Code What can I do when I execute. php on the server?
Lowest level, PHP can do any other CGI Program What can be done, such as collecting table data, generating dynamic page content, or sending and receiving cookies. the most powerful and meaningful feature is that PHP supports a wide range of databases. writing a Web page that supports databases is incredibly simple.
The supported databases are as follows:
Adabas D Interbase solid
DBASE msql Sybase
Empress MySQL velocis
Filepro Oracle UNIX dBm
Informix PostgreSQL
PHP also supports "conversations" with other services through protocols, such as IMAP, SNMP, nntp, POP3, or even HTTP. You can also open obscure network interfaces to interact with other protocols.
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.
PHP is one of the tools that allow you to generate dynamic web pages. PHP stands for Hypertext Preprocessor (PHP: Hypertext Preprocessor ). 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 at the official site of PHP, or you can refer to the topic "PHP installation full attack backup" on taoba. Article . The installation process is simple.

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.
Scalability
As mentioned above, 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
Traditionally, the interaction of web pages is 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.
More features
PHP developers have developed many popular peripheral base libraries to better suit web programming. These libraries contain a more easy-to-use layer. 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.