About the future of PHP two _php tutorial

Source: Internet
Author: User
Tags case statement password protection microsoft iis
3.2 Quickly install Apache Web server on Windows 95/98/nt/2000 (10 seconds) to run PHP on Windows, you need a Web server that you can use with Microsoft IIS, or you can use the free Apache. It can save you a lot of time because it can be installed through Apache's installation file setup.exe. Phpttriad is a software package that includes Apache, PHP, and MySQL, available from http://www.phpgeek.com/phptriad.php or its mirror site http://sourceforge.net/projects/ Phptriad download. I highly recommend using Phpttriad, which is extremely popular among Windows users (it has been downloaded millions of times). Apache binaries: http://httpd.apache.org/dist/httpd/binaries/win32 3.3 Microsoft SQL Server SQL Server can be installed on a machine that does not need to run Windows, And you also need a 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 start PostgreSQL directly from the console. PostgreSQL is about 3 times times faster than Oracle and MS SQL Server. The PostgreSQL Support library for PHP was written by Adam Sussman and his e-mail address is: asussman@vidya.com support for Windows nt/2000 PostgreSQL is available from/HTTP www.askesis.nl download. You can get the use guide for PostgreSQL from http://www.geocities.com/alavoor/HOWTO/pgsql/PostgreSQL-HOWTO.html. 3.4 PHP installation on UNIX and other operating systems see the Installation Guide and instructions on the PHP primary site www.php.net, or the install file in the downloaded package. 4. Fast advanced Step using the object-oriented mechanism of PHP to implement a project is as follows: • First, you need to connect a database SQL Server-There are two options: ADODB (active data Objects data Base), the dynamic database Php.weblogs.com/adodb) Metabase (database independent access and management), which is the independent access and management of databases (http://phpclasses.upperdesign.com/browse.htm/ PACKAGE/20) • Second, you need some common PHP classes to create forms, tables, and other HTML objects. These are available from the PHP classes website (http://phpclasses.upperdesign.com). Please refer to the download leaderboard for this website. You can also get form classes, template classes, and so on from the site http://www.milkywaygalaxy.freeservers.com/. • Thirdly, by inheriting these generic classes, you design and create your own PHP classes. • IV, Use the template class to separate display styles and business logic, see http://www.phpclasses.com V, using IDE tools for development (see the section on PHP IDE). • Finally, it is best to encapsulate your code into classes, which enables easy maintainability and reusability of your code. Key features of 5.PHP • Support for 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, and with this mechanism, PHP gets a speed boost. When configured as an Apache module, PHP becomes a very powerful and fast-running new choice. • Access logs-The user can maintain their clicks and logs through the PHP log Access feature. This feature provides real-time access monitoring without using the system's central access log files in any way. Log browsing scripts provide a quick summary of access to a set of pages owned by individual users. In addition, the package can also be configured to generate a footer (footer) for each page to display access information. Refer to the example at the end of the article. • Access Control-a built-in web-based configuration "sieve" that enables configuration of access control. This makes it possible to create a set of rules for all or part of a Web page so that a particular person with those pages can set restrictions on his page, such as who can access the pages and how they are accessed in one way or another. There are many ways to set up a page, such as password protection, full restrictions, login invalidation, or more on the client's domain, browser, e-mail address, or even other documents involved. • Support postgressql-- Postgressql is an advanced but free RDBMS (relational database management system)。 PHP supports embedding postgressql "SQL query statements" directly in the. html file. • Support for RFC-1867 file upload-File upload is a new feature of Netscape2.0. Users can upload files to the Web server. PHP provides the actual MIME decoding functionality, which makes it possible to upload a file. PHP also provides an additional framework to make some useful processing of the uploaded files received. • HTTP-based authentication control--php can be used to create custom HTTP-based authentication mechanisms for Apache servers. • Variables, arrays, union arrays (associative arrays)--php supports typed (the word does not know how to translate, look high finger points) variables, arrays, or even Perl-style union arrays. These can be passed from one page to another through the Get or Post method form. • Conditional statement, while Loop--php is a full-featured scripting language similar to C language. You can use the IF/THEN/ELSEIF/ELSE/ENDIF conditional statement, along with the while loop and the Switch/case statement, to arrange the logical flow of the HTML page display. • Regular expressions of extensions-regular expressions are applied frequently to pattern matching, Pattern substitution and general string manipulation. PHP supports all common normal expression operations. • Original HTTP header Control--depending on the condition, it is necessary for some advanced web design to have a Web page that can send a custom original HTTP header. A common use is to send a location:url header that redirects the client's request to another URL. You can also use the HTTP header to close the cache or manipulate the most recent update of the page. • Animated GIF images--php has supported Thomas Boutell's GD photo gallery, which enables the dynamic creation of GIF images. • Support for ISP "Safe mode"--php supports unique "Safe Mode" This makes it more secure for multiple users to run PHP scripts on the same server. • Many new features have been added to the new PHP release. Access to PHP's primary site Http://www.php.net. PHP is free of charge! -This is the last important feature. The PHP package is completely free. It complies with GNU/GPL. You can use this software for business or any other purpose. 5.1 PHP's advantages over Java PHP is a defined, server-side scripting language used to create dynamic Web pages. As a language specifically designed for the web, PHP brings many of the features that business organizations crave. • Very short learning cycles • Fast development time • Very high performance this for lack ofThe lack of skilled programmers, time and very urgent company, has very important significance. PHP can run on all major operating platforms (Unix,windows, even mainframes) and is inherently supported by a variety of popular databases. All of this decides it's a very good choice for Web development: online stores that used PHP technology say they only hire amateur programmers and can develop reusable code in a matter of days. Programmers who are familiar with languages such as c,c++ or Java always find themselves able to program PHP within a few hours. The fact that PHP is designed for web development makes it a unique development tool, as the Intranet design magazine evaluates: "PHP is built on the real needs of web developers .... Unlike other cumbersome, high-load methods, PHP is very lightweight and is tailor-made for web development. It can be faster and easier to solve complex problems than other similar technologies. "Java, as a new programming language, was originally used to run client applications that were embedded in the browser. In the last few years, the problems exposed by "applets" have forced sun and other Java developers to find a new way out of the language. The most prominent of these is server-side programming, which allows the Web site to connect to the database and produce other server-side applications, namely "Servlets". Sun finally introduced the Java Server Pages (JSP) as a means of writing servlets. Like PHP, JSPs are highly portable across different platforms (although PHP supports any 32-bit and more than 32-bit platforms, and JSP can only run on the platform where the Java Virtual machine is installed). Then, a novice without a programming background will find it extremely difficult to use servlets programming because of the complexity of the language and the complex design of the JSP system. There are many improvements to JSP performance: ZDNet's online publication eweek A recent survey found that PHP runs almost 3.7 times times faster than a JSP. It can be said that JSP is a very poor solution in a web environment because it can only handle very few transactions per second, and the response speed is quite slow. ZDNet's eWEEK magazine also mentions: "JSP is a relatively new technology, from the development of tools, resources, talent perspective, has not yet complete market maturity." ”...... Since the JSP is Java-based and Java is a strongly typed language, we have to declare the type of the variable and manually convert the type where needed. This makes JSP a scripting language most difficult for amateur programmers to learn. PHP works in collaboration with Java JSP is just a language that can access Java objectsIt is important to recognize that. PHP can also integrate Java, which means that PHP, like a JSP, can be used as a scripting language to invoke Java logic. However, unlike JSPs, PHP can also invoke other component models, such as Microsoft COM, and it is extremely easy to add support for the new object model. As you can see, PHP's ability to expand is infinite. JSP, on the other hand, relies entirely on Java. IBM programmer Sam Ruby uses PHP and Java together. With PHP's good support for Java, Java objects are created and used transparently, just like regular 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 per month, has Sandovan registered users and 1.2 million auctions per month. They tried to use Java, but they chose PHP because it was easier to use and faster to develop. If you want to know more, please contact Ben Margolin, who is the director of Auctionwatch website sales Service (ben@auctionwatch.com). Programming Advisor Reuven Lerner has made comparisons between various languages. His view of PHP is summarized as follows: "This is the easiest language to learn." Art and web designers may say that they are not programmers, but in fact, they are increasingly using javascript,vbscript and other simple programming languages in large projects. PHP is more formal and explicit than Perl, and PHP is easier for a novice to master than Java. Indeed, PHP is a bit like JavaScript (if there is a server-side version). Anyone, with or without programming experience, can learn and use PHP in a very short time. Maybe VBScript can do that, but Perl and Java are definitely not ... PHP is definitely an extraordinary, powerful system. No wonder you can become a popular language for creating Web sites ..... I think PHP will be a strong competitor for Java and JSP, and I will strongly recommend PHP in some customers and in-house projects. "PHP: Always on the move JSP has Sun as its backing, so continue to gain media attention. But interestingly, despite the lack of any propaganda offensive, PHP's popularity is still growing at a 8-11% rate, much larger than the 4% monthly growth of server-side applications. There are 6.5 million sites that use PHP (see net

http://www.bkjia.com/PHPjc/509185.html www.bkjia.com true http://www.bkjia.com/PHPjc/509185.html techarticle 3.2 Quickly install Apache Web server on Windows 95/98/nt/2000 (10 seconds) running PHP on Windows, you need a Web server, you can use Microsoft IIS, or you can use it for free ...

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