PHP Technology)

Source: Internet
Author: User
Tags php website microsoft iis
PHP is a script language for creating dynamic websites based on the server. You can use PHP and HTML to generate the website homepage. When a visitor opens the home page, the server executes the PHP Command and sends the execution result to the visitor's browser, which is similar to ASP and CoildFusion, however, PHP differs from them in that PHP is open source code and a cross-platform. PHP can run on windows nt and multiple versions of UNIX. It does not require any pre-processing to quickly feedback results, nor does it require mod_perl adjustments to reduce the memory image of your server. PHP consumes less resources. When PHP is used as a part of the Apache Web server, it does not need to call external binary programs to run the code, and the server does not have to bear any extra burden.

In addition to being able to operate on your page, PHP can also send the title of HIIP. You can set cookies to manage digital signatures and redirect users, and it provides excellent connectivity to other databases (also known as DBC ), integrate various external libraries to parse XML in PDF documents.

With PHP, no special development environment or IDE is required. You can <? Php is the start of the program block. Can I start with?> As the end of the PHP code block, you can also use the <%> mark or even use the <script LANGUAGE = "php"> </script> ASP format to configure PHP, PHP will handle all things between those marks.

PHP programming languages are similar to C and Perl. You do not need to declare any variables before using them, and it is very easy to create arrays and Hash. PHP also has some object-oriented features that can help you organize and package your code.

Although PHP can run quickly in Apache, there are some instruction sets on the PHP website for seamless integration of Microsoft IIS and Netscape Enterprise Serer. If you have not copied PHP, you can download it at http: // www.php.com, or you can use the operation manual, which includes all the PHP functions and features.

PHP is a server-side scripting language used to create dynamic web pages. You can create pages through PHP and HTML. When a visitor opens a webpage, the server processes the PHP Command and sends the result to the visitor's browser, just like ASP or ColdFusion. However, unlike ASP or ColdFusion, PHP is a cross-platform open source code. PHP can be executed in Windows NT and many different Unix versions. It can also be compiled into an Apache module or a CGI binary file. PHP is especially lightweight and convenient when compiled into an Apache model. It does not have any burden on tedious programs, so it can return results quickly, and does not need to adjust mod_perl to maintain a small server memory image.

In addition to generating the content of your webpage, PHP can also be used to transmit HTTP headers. You can set cookies, authorize management, and redirect users to new pages. It can also access many databases and ODBC. In addition, it can be integrated with a variety of external libraries, allowing you to do almost anything, from creating PDF files to parsing XML.

PHP code is embedded in Web pages, so you do not have to create a special development environment or IDE for it. You use <? Php and end it with?> Flag PHP code (you can also set PHP to the <%> flag in the form of ASP, or even use <script language = "php"> </SCRIPT> ). The PHP engine will process anything between these marks.

The syntax of PHP is similar to that of C and Perl. You do not need to declare variables before use. It is also fast to create arrays and hashes (correlated arrays. PHP's initial object-oriented feature also provides a simple way to organize and encapsulate code.

Although PHP runs the fastest when embedded in Apache, there is still a guide to how to seamlessly integrate it with Microsoft IIS and Netscape Enterprise Server on PHP-related sites. If you do not have PHP, you can download it from its official website. You can also find a user manual that includes all PHP functions and features.

Create your own commands
Because PHP scripts are written in HTML documents, you do not have to use special editors to create pages. However, you must execute PHP on a server that supports PHP. If you are using your own server, it is very easy to do. If you are using the ISP Service Processing page, you need to contact your ISP's customer service team to ask them to help you install PHP.

For Unix systems, you must have basic Unix skills, such as using make and a C language compiler. You also need an ansi c compiler and a Web server on your system.

For Windows 95/NT, you need one of the following servers: Microsoft Personal Web Server, Microsoft Internet Information Server 3 or 4, Apache 1.3.x, Or Omni HTTPd 2.0b1.

You can find all the information about installing and setting PHP on the PHP website.

David Sklar is the chief information officer of Student. Net Publishing.

Adam Trachtenberg is the deputy director of Student. Net Publishing.

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.