Chapter 31. Writing PHP Scripts

 < Day Day Up > 

IN THIS CHAPTER

  • Introduction to PHP

  • Basic Functions

  • Object Orientation

  • Handling HTML Forms

  • Databases

  • Reference

This chapter introduces you to the world of PHP programming, from the point of view of using it as a web scripting language and as a command-line tool. PHP originally stood for personal home page because it was a collection of Perl scripts designed to ease the creation of guest books, message boards, and other interactive scripts commonly found on home pages. However, since those early days, it has received two major updates (PHP 3 and PHP 4), plus a substantial revision in PHP 5, which is the version bundled with Fedora.

Part of the success of PHP has been its powerful integration with databases its earliest uses nearly always took advantage of a database backend. In PHP 5, however, two big new data storage mechanisms were introduced: SQLite, which is a powerful and local database system, and SimpleXML, which is an API designed to make XML parsing and querying easy. As you will see over time, the PHP developers did a great job because both SQLite and SimpleXML are easy to learn and use.

If you used PHP prior to PHP 5, you should know that there has been a major evolution in the object-orientated system, and we strongly recommend you read the "Object Orientation" section.

NOTE

PHP's installation packages are under the Web Server category in Add/Remove Applications. The basic package is just called php, but you might also want to add extensions such as php_ldap, php_mysql, or php_pgsql. Choose only the extensions you plan to use; otherwise, it will waste system resources.


     < Day Day Up > 


    Red Hat Fedora 4 Unleashed
    Red Hat Fedora 4 Unleashed
    ISBN: 0672327929
    EAN: 2147483647
    Year: 2006
    Pages: 361

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net