Cover image for PHP 6/MySQL Programming for the Absolute Beginner.
PHP 6/MySQL Programming for the Absolute Beginner.
Title:
PHP 6/MySQL Programming for the Absolute Beginner.
Author:
Harris, Andrew B.
ISBN:
9781598638264
Personal Author:
Physical Description:
1 online resource (513 pages)
Contents:
TABLE OF CONTENTS -- Chapter 1 EXPLORING THE ENVIRONMENT -- Programming on the Web Server -- Installing PHP and Apache -- Using an Existing Server -- Installing Your Own Development Environment -- Installing with XAMPP -- Starting Your Server -- Checking Your Security Settings -- Configuring Apache -- Running Your Local Server -- Adding PHP to Your Pages -- Examining the Results -- Display Errors -- Windows Extensions -- Changes in PHP 6 -- Safe Mode -- Register Globals -- Creating the Tip of the Day Program -- Summary -- Chapter 2 USING VARIABLES AND INPUT -- Introducing the Story Program -- Using Variables in Your Scripts -- Introducing the Hi Jacob Program -- Creating a String Variable -- Naming Your Variables -- Assigning a Value to a Variable -- Printing a Variable's Value -- Using Variables for More Complex Pages -- Building the Row Your Boat Page -- Creating Multi-Line Strings -- Working with Numeric Variables -- Making the ThreePlusFive Program -- Assigning Numeric Values -- Using Mathematical Operators -- Creating a Form to Ask a Question -- Building an HTML Page with a Form -- Setting the Action Attribute to a Script File -- Writing a Script to Retrieve the Data -- Sending Data without a Form -- Understanding the get Method -- Using a URL to Embed Form Data -- Working with Multiple Field Queries -- Building a Pre-formatted Query -- Reading Input from Other Form Elements -- Introducing the borderMaker Program -- Building the borderMaker.html Page -- Reading the Form Elements -- Reading Select Elements -- Reading Radio Groups -- Returning to the Story Program -- Designing the Story -- Building the HTML Page -- Building the Story -- Summary -- Chapter 3 CONTROLLING YOUR CODE WITH CONDITIONS AND FUNCTIONS -- Examining the Petals around the Rose Game -- Creating a Random Number -- Viewing the Roll Em Program -- Printing a Corresponding Image.

Using the if Statement to Control Program Flow -- Introducing the Ace Program -- Creating a Condition -- Exploring Comparison Operators -- Creating an if Statement -- Working with Negative Results -- Demonstrating the Ace or Not Program -- Using the else Clause -- Working with Multiple Values -- Writing the Binary Dice Program -- Using Multiple else if Clauses -- Using the switch Structure to Simplify Programming -- Building the Switch Dice Program -- Using the switch Structure -- Combining a Form and Its Results -- Responding to Checkboxes -- Using Functions to Encapsulate Parts of the Program -- Examining the This Old Man Program -- Creating New Functions -- Using Parameters and Function Values -- Examining the Param.php Program -- Looking at Encapsulation in the Main Code Body -- Returning a Value: The chorus() Function -- Accepting a Parameter in the verse() Function -- Managing Variable Scope -- Looking at the Scope Demo -- Returning to the Petals Game -- Starting HTML -- Main Body Code -- The printGreeting() Function -- The printDice() Function -- The showDie() Function -- The calcNumPetals() Function -- The printForm() Function -- The Ending HTML Code -- Summary -- Chapter 4 LOOPS AND ARRAYS -- Introducing the Poker Dice Program -- Counting with the for Loop -- Initializing a Sentry Variable -- Setting a Condition to Finish the Loop -- Changing the Sentry Variable -- Building the Loop -- Modifying the for Loop -- Using a while Loop -- Repeating Code with a while Loop -- Recognizing Endless Loops -- Building a Well-Behaved Loop -- Working with Basic Arrays -- Generating a Basic Array -- Using a Loop to Examine an Array's Contents -- Using the array() Construct to Preload an Array -- Detecting the Size of an Array -- Improving This Old Man with Arrays and Loops -- Building the place Array -- Writing Out the Lyrics -- Using Arrays in Forms.

Arranging an HTML Form to Create an Array -- Reading an Array from a Form -- Keeping Persistent Data -- Counting with Form Fields -- Storing Data in the Text Box -- Using a Hidden Field for Persistence -- Using a Session Variable to Store Data -- Starting the Session -- Working with Session Data -- Using Sessions Well -- Writing the Poker Dice Program -- Setting Up the XHTML -- Building the Main Code Body -- Starting Up the Game -- Playing the Game -- Creating the First Pass Output -- Building the Second Pass Output -- Creating the evaluate() Function -- Counting the Dice Values -- Counting Pairs, Twos, Threes, Fours, and Fives -- Looking for Two Pairs -- Looking for Three of a Kind and a Full House -- Checking for Four of a Kind and Five of a Kind -- Checking for Straights -- Cashing Out -- Summary -- Chapter 5 BETTER ARRAYS AND STRING HANDLING -- Introducing the Word Search Program -- Using the foreach Loop to Work with an Array -- Introducing the foreach.php Program -- Creating an Associative Array -- Examining the assoc.php Program -- Building an Associative Array -- Building an Associative Array with the array() Function -- Using foreach with Associative Arrays -- Using Built-In Associative Arrays -- Introducing the formReader.php Program -- Reading the _REQUEST Array -- Creating a Multidimensional Array -- Building the HTML for the Basic Multidimensional Array -- Responding to the Distance Query -- Making a Two-Dimensional Associative Array -- Building the HTML for the Associative Array -- Responding to the Query -- Building the Two-Dimensional Associative Array -- Getting Data from the Two-Dimensional Associative Array -- Manipulating String Values -- Demonstrating String Manipulation with the Pig Latin Translator -- Building the Form -- Using the split() Function to Break a String into an Array -- Trimming a String with rtrim().

Finding a Substring with substr() -- Using strstr() to Search for One String Inside Another -- Using the Concatenation Operator -- Finishing the Pigify Program -- Translating Between Characters and ASCII Values -- Returning to the Word Search Creator -- Getting the Puzzle Data from the User -- Setting Up the Response Page -- Working with the Empty Data Set -- Building the Program's Main Logic -- Parsing the Word List -- Clearing the Board -- Filling the Board -- Adding a Word -- Making a Puzzle Board -- Adding the Foil Letters -- Printing the Puzzle -- Printing the Answer Key -- Summary -- Chapter 6 WORKING WITH FILES -- Previewing the Quiz Machine -- Entering the Quiz Machine System -- Editing a Quiz -- Taking a Quiz -- Seeing the Results -- Viewing the Quiz Log -- Saving a File to the File System -- Introducing the saveSonnet.php Program -- Opening a File with fopen() -- Creating a File Handle -- Examining File Access Modifiers -- Writing to a File -- Closing a File -- Loading a File from the Drive System -- Introducing the loadSonnet.php Program -- Beautifying Output with CSS -- Using the "r" Access Modifier -- Checking for the End of the File with feof() -- Reading Data from the File with fgets() -- Reading a File into an Array -- Introducing the cartoonifier.php Program -- Loading the File into an Array with file() -- Using str_replace() to Modify File Contents -- Working with Directory Information -- Introducing the imageIndex.php Program -- Creating a Directory Handle with openDir() -- Getting a List of Files with readdir() -- Selecting Particular Files with preg_grep() -- Using Basic Regular Expressions -- Storing the Output -- Working with Formatted Text -- Introducing the mailMerge.php Program -- Determining a Data Format -- Examining the mailMerge.php Code -- Loading Data with the file() Command.

Splitting a Line into an Array and to Scalar Values -- Creating the QuizMachine.php Program -- Building the QuizMachine.php Control Page -- Editing a Test -- Taking a Quiz -- Grading the Quiz -- Creating an Answer Key -- Viewing the Log -- Summary -- Chapter 7 WRITING PROGRAMS WITH OBJECTS -- Introducing the SuperHTML Object -- Building a Simple Document with SuperHTML -- Including a File -- Building the Web Page -- Writing Out the Page -- Working with the Title Property -- Adding Text and Tags with SuperHTML -- Creating Lists the SuperHTML Way -- Building More Specialized Lists -- Making Tables with SuperHTML -- Creating a Basic Table -- Creating Super Forms -- Building Drop-Down Menus -- Understanding OOP -- Objects Overview -- Creating a Basic Object -- Adding Methods to a Class -- Reusing Class Files -- Inheriting from a Parent Class -- Building the SuperHTML Class -- Overall Strategy -- Creating the Constructor -- Creating the Bottom of the Page -- Adding Headers and Generic Tags -- Creating Lists from Arrays -- Creating Tables One Row at a Time -- Creating Forms -- Building Basic Form Objects -- Building Select Objects -- Responding to Form Input -- Summary -- Chapter 8 XML AND CONTENT MANAGEMENT SYSTEMS -- Understanding Content Management Systems -- Examining Existing Content Management Systems -- Moodle -- WordPress -- Drupal -- Introducing simpleCMS -- Viewing Pages from a User's Perspective -- Examining the PHP Code -- Looking at the Header -- Viewing the CSS -- Inspecting the Menu System -- Looking at Content Blocks -- Improving the CMS with XML -- Introducing XML -- Working with XML -- Understanding XML Rules -- Examining main.xml -- Simplifying the Menu Pages -- Introducing XML Parsers -- Working with Simple XML -- Working with the simpleXML API -- Creating a simpleXML Object -- Viewing the XML Code -- Accessing XML Nodes Directly.

Using a foreach Loop on a Node.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: