Learning PHP 5

PHP has gained a following among non-technical web designers who need to add interactive aspects to their sites. Offering a gentle learning curve, PHP is an accessible yet powerful language for creating dynamic web pages. As its popularity has grown, PHP's basic feature set has become increasi...

Descripción completa

Detalles Bibliográficos
Autor principal: Sklar, David (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing : O'Reilly 2004.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626898706719
Tabla de Contenidos:
  • Table of Contents; Preface; Who This Book Is For; Contents of This Book; Other Resources; Conventions Used in This Book; Programming Conventions; Typographical Conventions; Using Code Examples; Comments and Questions; Acknowledgments; Orientation and First Steps; PHP's Place in the Web World; What's So Great About PHP?; PHP Is Free (as in Money); PHP Is Free (as in Speech); PHP Is Cross-Platform; PHP Is Widely Used; PHP Hides Its Complexity; PHP Is Built for Web Programming; PHP in Action; Basic Rules of PHP Programs; Start and End Tags; Whitespace and Case-Sensitivity; Comments
  • Chapter SummaryWorking with Text and Numbers; Text; Defining Text Strings; Manipulating Text; Validating strings; Formatting text; Numbers; Using Different Kinds of Numbers; Arithmetic Operators; Variables; Operating on Variables; Putting Variables Inside Strings; Chapter Summary; Exercises; Making Decisions and Repeating Yourself; Understanding true and false; Making Decisions; Building Complicated Decisions; Repeating Yourself; Chapter Summary; Exercises; Working with Arrays; Array Basics; Creating an Array; Choosing a Good Array Name; Creating a Numeric Array; Finding the Size of an Array
  • Looping Through ArraysModifying Arrays; Sorting Arrays; Using Multidimensional Arrays; Chapter Summary; Exercises; Functions; Declaring and Calling Functions; Passing Arguments to Functions; Returning Values from Functions; Understanding Variable Scope; Chapter Summary; Exercises; Making Web Forms; Useful Server Variables; Accessing Form Parameters; Form Processing with Functions; Validating Data; Required Elements; Numeric or String Elements; Number Ranges; Email Addresses; Menus; HTML and JavaScript; Beyond Syntax; Displaying Default Values; Putting It All Together; Chapter Summary
  • ExercisesStoring Information with Databases; Organizing Data in a Database; Connecting to a Database Program; Creating a Table; Putting Data into the Database; Inserting Form Data Safely; Generating Unique IDs; A Complete Data Insertion Form; Retrieving Data from the Database; Changing the Format of Retrieved Rows; Retrieving Form Data Safely; A Complete Data Retrieval Form; MySQL Without PEAR DB; Chapter Summary; Exercises; Remembering Users with Cookies and Sessions; Working with Cookies; Activating Sessions; Storing and Retrieving Information; Configuring Sessions
  • Login and User IdentificationWhy setcookie() and session_start() Want to Be at the Top of the Page; Chapter Summary; Exercises; Handling Dates and Times; Displaying the Date or Time; Parsing a Date or Time; Dates and Times in Forms; A Single Menu with One Choice Per Day; Multiple Menus for Month, Day, and Year; Multiple Menus for Hour and Minute; Processing Date and Time Menus; Displaying a Calendar; Chapter Summary; Exercises; Working with Files; Understanding File Permissions; Reading and Writing Entire Files; Reading a File; Writing a File; Reading and Writing Parts of Files
  • Working with CSV Files