You should add the following lines to your

A t this point, your LAMP setup is almost complete if you have been following along in the book. You have nearly all of the elements in place to complete your LAMP acronym. Now all you have to do is install and configure PHP and you will be on your way to running a full- blown LAMP server. PHP has been around for many years and has become a fully featured and mature program- ming language. If you are curious about PHP s development, please refer to Chapter 1, Intro- ducing LAMP ; otherwise, let s get moving along so you can learn why you should use PHP and the important features it has to offer. Why Use PHP? Simply stated, PHP is the fastest parsing server-side scripting language available. ASP and Java both require separate objects to be instantiated to accomplish almost any task. For instance, in ASP when a programmer uses VBScript, he is running a COM (Component Object Model) object. When he writes to the client, he s calling the Response COM object s Write method. When he accesses a database, he uses another COM object. Then when he accesses the filesys- tem, yet another COM object is called. Because of this, more and more resources are required to perform tasks. When hundreds or even thousands of users are accessing these pages and func- tionality, all this overhead adds up fast and significantly reduces system performance and speed. PHP, however, accomplishes all the preceding tasks entirely in PHP s own memory space. This of course uses drastically less resources. Features, features, features: PHP comes installed with tons of support for features such as FTP, data compression, file uploads, XML (eXtensible Markup Language), MD5, e-mail, and so on. To enable these features in ASP, you would need to purchase expensive third-party packages. These hidden costs, in our opinion, are simply unacceptable and those are just the basic options. PHP also offers complex functionality such as dynamic images, IMAP, SNMP, dynamic Flash, PDF (Portable Document Format), native access to Oracle and other DBs, LDAP (Lightweight Directory Access Protocol), and sockets. Not only that, PHP is actually more mature than ASP. ASP has been around only since 1996, whereas PHP has been in devel- opment since 1994. Last is the cost factor. If you want to run ASP efficiently, you ll want to run Windows, prob- ably access Microsoft SQL, most likely want Visual Studio, and probably run IIS money, money, money, and poor performance when compared to Linux, Apache, MySQL, and PHP. PHP, in a general sense and at its base level, is capable of creating dynamic web pages that incorporate data from databases or other sources not found directly on those web pages. PHP can also be run from the command line and can be used from cron jobs or even for client-side GUI applications, although these last two abilities are rarely seen.
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Comments are closed.