The future of PHP is second. 3.2 quickly install ApacheWeb server on Windows 9598nt2000 (10 seconds) and run PHP on Windows. you need a Web server. you can use Microsoft's IIS, you can also use free 3.2 to quickly install Apache Web server on Windows 95/98/NT/2000 (10 seconds) and run PHP on Windows. you need a Web server, you can use Microsoft IIS or free Apache. Because you can use the setup.exe installation file of apachefor installation, you can save a lot of time. PHPTtriad is a software package that includes Apache, PHP, and MySQL. http://www.phpgeek.com/phptriad.php Or its image site http://sourceforge.net/projects/phptriad Download. I strongly recommend using PHPTtriad, which is extremely popular among Windows Users (millions of downloads have been made ). Apache binary program: http://httpd.apache.org/dist/httpd/binaries/win32 3.3 Microsoft's SQL Server can be installed on a machine that does not need to run Windows, and you also need an SQL Server for Web development. I recommend that you install Redhat Linux and PostgreSQL RPMs on very old PCs (such as Pentium or 486. Your database does not require any Windows graphical interface. you can directly start PostgreSQL on the console. PostgreSQL is about three times faster than Oracle and ms SQL server. PHP PostgreSQL support Library is written by Adam Sussman, his mail address is: asussman@vidya.com support Windows NT/2000 PostgreSQL from http://www.askesis.nl Download. Available from http://www.geocities.com/alavoor/HOWTO/pgsql/PostgreSQL-HOWTO.html Obtain the PostgreSQL User Guide. 3.4 for installation of PHP on UNIX and other operating systems, see the installation guide and instructions on the PHP main site www.php.net or the INSTALL file in the downloaded software package. 4. the steps for implementing a project using PHP's object-oriented mechanism are as follows: · First, you need to connect to a database SQL Server-there are two options: ADODB (Active Data Objects Data Base ), that is, the dynamic data object database ( http://php.weblogs.com/adodb ) Metabase (Database independent access and management), that is, the Database independent access and management ( http://phpclasses.upperdesign.com /Browse.htm/package/20) · Second, you need some common PHP classes to create forms, tables, and other HTML objects. These can be obtained from the PHP classes website ( http://phpclasses.upperdesign.com ). You can refer to the download ranking list for this website. You can also http://www.milkywaygalaxy.freeservers.com/ Form class and template class. · Third, design and create your own PHP class by inheriting these general classes. · Fourth, use the template class to separate the display style and business logic. for details, see http://www.phpclasses.com · Fifth, use IDE tools for development (see the php ide section ). · Finally, it is best to encapsulate your code into a class so that the code can be easily maintained and reusable. 5. main features of PHP-standard CGI, FastCGI, and Apache modules-as a standard CGI program, PHP can be installed on any UNIX machine running any Web server. PHP supports the new FastCGI standard. through this mechanism, PHP has improved its speed. When configured as an Apache module, PHP becomes a new option with extremely powerful functions and lightning speed. · Access logs-using the PHP log access function, users can maintain their clicks and logs. This function provides real-time access monitoring without using the system center to access log files in any way. The log browsing script provides a quick access summary for a group of pages owned by individual users. In addition, the package can also generate a footer for each page to display access information. Refer to the example below. · Access control-a built-in Web-based configuration "screening" to implement access control configuration. In this way, it is possible to create a set of rules for all or some Web pages so that specific people with these pages can set various restrictions on their webpages, such, who can access these pages and how they can be accessed. There are many ways to set pages, such as password protection, full restrictions, logon failure, or more based on the customer's domain, browser, e-mail address, and even other documents. · PostgresSQL-PostgresSQL is an advanced but free RDBMS (relational database management system ). PHP supports embedding the SQL query statement of PostgresSQL in the. HTML file ". Support for RFC-1867 file upload-file upload is a new feature of Netscape2.0. You can upload files to the Web server. PHP provides the actual MIME decoding function, making file upload possible. PHP also provides an additional framework for processing uploaded files. · HTTP-based authentication control-PHP can be used to create a custom HTTP-based authentication mechanism for the Apache server. · Variables, arrays, and associative arrays -- PHP supports typed variables, arrays, and even Perl-style union arrays. These can be transmitted from one page to another through the form of the GET or POST method. · Conditional statements and While loops-PHP is a fully functional scripting language similar to the C language. You can use the if/then/elseif/else/endif condition statement, and the While loop and Switch/case statement to arrange the logic flow displayed on the HTML page. · Extended regular expressions-regular expressions are frequently used in pattern matching, pattern replacement, and general string operations. PHP supports all common regular expression operations. · Original HTTP Header control-based on certain conditions, enabling Web pages to send custom original HTTP headers is very necessary for some advanced website designs. A common usage is to send a Location: URL header and redirect client requests to another URL. It can also be used to disable the cache or the newly updated HTTP header on the operation page. · Dynamically create GIF images-PHP supports the GD image library of Thomas Boutell, which allows you to dynamically create GIF images. · Support ISP "security mode"-PHP supports a unique "security mode", making it safer for multiple users to run PHP scripts on the same server. · Many new features are added to the newly released PHP. Access the main site of PHP http://www.php.net . · PHP is free! -- This is the last important feature. PHP packages are completely free of charge. It complies with GNU/GPL. You can use this software for commercial purposes or for any other purpose. 5.1 Advantages of PHP over Java PHP is a script language that has been determined and used to create dynamic web pages on servers. As a language specifically designed for the Web, PHP brings many features that business organizations desire. · Extremely short learning cycles · fast development time · extremely high performance, which is of great significance for companies that lack skilled programmers and are time-consuming. PHP can run on all major operating platforms (UNIX, Windows, and even mainframe) and is born to support a variety of popular databases. All of this makes it an ideal choice for Web Development: online stores that once used PHP technology say they only need to hire amateur programmers, reusable code can be developed within a few days. Programmers familiar with languages such as C, C ++, and Java always find that they can program PHP in just a few hours. PHP is designed for Web development. This fact makes it a unique development tool, as the Intranet Design magazine commented: "PHP is built on the actual needs of Web developers .... unlike other heavy and high-load methods, PHP is very lightweight and customized for Web development. It can solve complex problems faster than other similar technologies ." Java, as a new programming language, was initially used to run client applications embedded in a browser. In the past few years, the problems exposed by "applet" have forced SUN and other Java developers to find a new way out for the language. The most prominent one is server-side programming, which allows the Web site to connect to the database and generate other server-side applications, that is, "servlets ". SUN finally launched the Java Server Pages (JSP) as a means to write servlets. Like PHP, JSP is highly portable across different platforms (although PHP supports any 32-bit and 32-bit platforms, JSP can only run on platforms where Java virtual machines are installed ). Then, a newbie without a programming background will find that using servlets programming is extremely difficult because of the complexity of the language and the complicated design method of the JSP system. The performance of JSP also has many areas to be improved: A recent survey by the online publication eWeek of ZDnet found that PHP is running almost 3.7 times faster than JSP. It can be said that JSP is a very poor solution in the Web environment, because it can only process a small number of transactions per second, and the response speed is quite slow. ZDnet's eWeek Magazine also mentioned: "JSP is a relatively new technology. from the perspective of development tools, resources, and talents, it has not yet reached a complete market maturity. "...... Since JSP is based on Java, and Java is a strongly typed language, we have to declare the type of the variable and manually convert the type as needed. This makes JSP the most difficult scripting language for amateur programmers. Collaboration between PHP and Java JSP is just a language that can access Java objects. it is important to realize this. PHP can also integrate Java, which means that PHP can become a scripting language that can call Java logic like JSP. However, unlike JSP, PHP can also call other component models, such as Microsoft's COM, and it is extremely easy to add support for new object models. It can be seen that PHP has infinite scalability. On the other hand, JSP relies entirely on Java. IBM programmer Sam Ruby uses PHP and Java together. With PHP's good support for Java, Java objects are transparently created and used just like common PHP Objects. The AutionWatch website allows business groups of all sizes to benefit from their dynamic bidding environment. It has more than 2.6 million visitors each month, more than 0.3 million registered users, and 1.2 million auctions each month. They tried to use Java but chose PHP because it is easier to use and faster to develop. If you want to know more, please contact Ben Margolin, head of AuctionWatch website sales department (ben@auctionwatch.com ). Programming consultant Reuven Lerner has made comparisons between various languages. His views on PHP are summarized as follows: "This is a language that is easy to learn. Artists and Web designers may say they are not programmers, but in fact they are increasingly using JavaScript, VBScript, and some other simple programming languages in large projects. Compared with Perl, PHP is more formal and clear; for a novice, PHP is easier to master than Java. Indeed, PHP is a bit like JavaScript (if there is a server version ). Anyone, regardless of programming experience, can learn and use PHP in a short time. This may be done in VBScript, But Perl and Java certainly won't work... PHP is definitely an extraordinary and powerful system. It's almost impossible to become a popular language for creating Web sites ..... I think PHP will be a strong competitor of Java and JSP, and I will strongly recommend PHP in some clients and internal projects." PHP: JSP is backed by Sun, so it keeps gaining media attention. But interestingly, despite no publicity campaign, PHP's popularity continues to grow at an 8-11% rate, far exceeding the monthly growth rate of 4% for server applications. 6.5 million websites use PHP (see Net
95/98/NT/2000 quickly install Apache Web Server (10 seconds) to run PHP on Windows. you need a Web server, you can use Microsoft IIS, you can also use free...