This book is ideal for beginner graphic designers, bloggers, and other web designers who want a thorough but non intimidating way to understand the code that makes websites dynamic. The book begins with an introduction to PHP, then moves on to more advanced features - language basics, arrays and functions, web forms, connecting to databases and much more. This new book is also targeted towards PHP developers who are already familiar with PHP 4. Upgrading to PHP 5 offers a concise appraisal of the differences between PHP 4 and PHP 5, a detailed look at what's new in this version, and an explanation of how these changes affect you. The book also covers more advanced features and provides hands-on experience through short sample programs included throughout.
Additional Info
  • Publisher: Laxmi Publications
  • Language: English
  • ISBN : 978-93-80298-98-6
  • Chapter 1

    Installation Price 2.99  |  2.99 Rewards Points

    PHP stands for Hypertext Preprocessor and it is a server side scripting language often written in an HTML context. Unlike an ordinary HTML page, a PHP script is not sent directly to a client by the server; instead it is parsed by the PHP engine. HTML elements in the script are left alone, but PHP code is interpreted and executed.
  • Chapter 2

    Basic Language Price 2.99  |  2.99 Rewards Points

    PHP borrows a bit of it's syntax from other languages such as C, shell, perl and even java. It really is a hybrid language taking the best features from other languages and creating an easy-to-use and powerful scripting language. PHP is a widely used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
  • Chapter 3

    Building Blocks Price 2.99  |  2.99 Rewards Points

    Different types of data take up different amounts of memory and maybe treated differently when they are manipulated in a script. Some programming languages therefore demand that the programmer declare which type of data a variable will contain. In contrast, PHP is loosely typed, meaning that it will calculate data types as data is assigned to each variable.
  • Chapter 4

    Control Structure Price 2.99  |  2.99 Rewards Points

    Control structures are one of the coolest things in PHP. They take a lot of the work off of your shoulders and place the burden on the language itself. They are especially useful for making sites where you need to make a page do something over and over again. The simple looping statement, when used correctly, can pull all of that information for you and do it over an over again, thus making a large page like that a breeze. This chapter explains how to use these control structures and what each of them can be used for.
  • Chapter 5

    Arrays Price 2.99  |  2.99 Rewards Points

    Arrays are a collection of related values, such as data submitted from a form, the names of students in a class, or the populations of a list of cities. In the previous chapter, you learned that a variable is a named container that holds a value. An array is a container that holds multiple values, each distinct from the rest.
  • Chapter 6

    Function Price 2.99  |  2.99 Rewards Points

    When writing computer programs, laziness is a virtue. Reusing code that you've already written makes it easier to as little work as possible. Functions are the key to code reuse. A function is a named set of statements that you can execute just by invoking the function name instead of retyping the statements.
  • Chapter 7

    String Price 2.99  |  2.99 Rewards Points

    A string is a series of characters. In PHP, a character is the same as a byte, that is, there are exactly 256 different characters that are possible. A string can be used directly in a function or it can be stored in a variable.
  • Chapter 8

    Managing Date and Time Price 2.99  |  2.99 Rewards Points

    Dates and times are all over the place in web applications. In a shopping cart, you need to handle shipping dates of the products. In a forum, you need to keep track of when the messages are posted. In all sorts of applications you need to keep track of the last time a user logged in so that you can tell them things such as "fifteen new messages were posted since you last logged in.".
  • Chapter 9

    Objects Price 2.99  |  2.99 Rewards Points

    As a PHP programmer, you know variables and functions inside out. Classes and objects though, might be a different matter. It's possible to create perfectly good systems without defining a single class. Even if you stay away from object oriented programming in your own code, you will likely need to know object oriented programming.
  • Chapter 10

    Object Oriented Programming Price 2.99  |  2.99 Rewards Points

    Modern programming languages usually support or even require an object oriented approach software development. Object oriented (OO) development attempts to use the classifications, relationships and properties of the objects in the system to aid in program development.
  • Chapter 11

    Forms Price 2.99  |  2.99 Rewards Points

    While getting into PHP development around 1997, what kept me working with PHP (besides its database access) was its capability to work with forms. By using PHP to access data and submit it to the web server via HTML forms can be done quickly and easily.
  • Chapter 12

    Working with Files Price 2.99  |  2.99 Rewards Points

    In reality, though, your PHP script will need to work with data retrieved from disk files, SQL resultsets, XML documents, and many other data sources. PHP comes with numerous built in functions to access these data sources and this chapter will get you started on the road to discovering them, by focusing specifically on PHP's file system functions.
  • Chapter 13

    Using MYSQL to Create Database Price 2.99  |  2.99 Rewards Points

    A database is a separate application that stores a collection of data. Each database has one or more distinct API's for creating, accessing, managing, searching, and replacing the data it holds.
  • Chapter 14

    Connecting to Databases Within PHP Price 2.99  |  2.99 Rewards Points

    The first step in any database transaction from PHP is connecting to the database. When you're using MYSQL directly, this is analogous to executing the MYSQL client application; however, in PHP this is done using the mysqli_connect() function.
  • Chapter 15

    Cookies and Session Price 2.99  |  2.99 Rewards Points

    Session functions implement a concept that you have already seen; that is, the provision to users of a unique identifier, which can then be used from access to acquire information linked to that ID.
  • Chapter 16

    Validating User Input Price 2.99  |  2.99 Rewards Points

    If you plan to accept user input on your site, you have to be prepared for mistakes. This could be a simple human error, or a deliberate attempt to circumvent your Web Forms.
  • Chapter 17

    Error Handling Price 2.99  |  2.99 Rewards Points

    Even the mos well written scripts, occasionally encounter less than ideal circumstances. Errors do occur and although PHP can recognize them it is up to your script to decide what actions need to be taken so that your site functions as smoothly as possible and your users are encouraged to come back when the problem has been resolved.
  • Chapter 18

    Working with XML within PHP Price 2.99  |  2.99 Rewards Points

    XML is the most popular way to store data and exchange information over the internet. Since so many languages can read and write XML files, use XML when you want to share data among different platforms and applications.
  • Chapter 19

    Regular Expression Price 2.99  |  2.99 Rewards Points

    PHP supports two types pf regular expression POSIX and Perl.
  • Chapter 20

    Building Content Management Systems Price 2.99  |  2.99 Rewards Points

    The content-management system is going to need to do several things. Its most obvious purpose is to offer an environment where writers, editors and administrators can create new stories.
  • Chapter 21

    Using Pear Price 2.99  |  2.99 Rewards Points

    Short for PHP Extension and Application Repository, is a package system for PHP. During version 4 of PHP, the number of users exploded, and so did the number of code snippets you could download from different websites.
  • Chapter 22

    Managing a Simple Mailing List Price 2.99  |  2.99 Rewards Points

    In this chapter, you'll learn the methods for creating a managed distributed list, which can be used to send out newsletters or anything else that you want to send, to a list of email addresses in a database.
  • Chapter 23

    Creating an Address Book Online Price 2.99  |  2.99 Rewards Points

    In your online address book, a set of related tables will help alleviate the redundancy and repetition of information. Notice the use of date-related fields; each table has a date_added and a date_modified field in it. The fields will help maintain your data.
  • Chapter 24

    Creating a Shopping Cart Mechanism Price 2.99  |  2.99 Rewards Points

    In the last of the directly hands-on chapters, the project is to integrate a shopping cart and checkout procedure into the storefront you created in the previous chapter.
  • Chapter 25

    PHP Script Price 2.99  |  2.99 Rewards Points

    The CLI version of PHP is meant for writing standalone shell scripts running independently from any web server. As of PHP 4.3.0, the CLI version of PHP is installed by default, alongside whatever web server interface you choose to install.

About the Author

Not available