Understanding PHP

  • PHP array_chunk Function
    In this programming tutorial, you will learn how to work with the PHP array_chunk function.
  • PHP Closures as View Helpers: Lazy-Loading File Data
    In this second part of a two-part tutorial, you’ll learn how to use closures in the development of an extendable template system. This system can be customized at will without struggling too much, thanks to the number of interfaces that it implements.
  • Using PHP Closures as View Helpers
    In this first part of a two-part tutorial, I develop a basic template system that can parse any type of closure assigned as a property of its view object(s).
  • PHP File and Operating System Program Execution Functions
    In this conclusion to an eight-part article series on working with a computer’s file and operating system with PHP, you’ll learn about the functions used in combination with a PHP script to execute system-level programs. This article is excerpted from chapter 10 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).
  • PHP: Effects of Wrapping Code in Class Constructs
    In this first part of a two-part tutorial, I use a somewhat contrived example to show why you should avoid coding static helper classes in PHP.
  • PHP: Building Concrete Validators
    In this two-part tutorial, I show why the use of static helper classes can be detrimental to building robust and scalable object-oriented applications in PHP (though you should take into account that the concept is language agnostic). I also implement a set of instantiable, fine-grained validators, which can be easily tested in isolation, injected into the internals of other objects, and so forth.
  • Sanitizing Input with PHP
    In this seventh part of an eight-part article series on using PHP commands with your file and operating systems, you’ll learn how and why to sanitize user input. This article is excerpted from chapter 10 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).
  • Executing Shell Commands with PHP
    In this sixth part of an eight-part series on working with the file and operating systems of a computer with PHP, you’ll learn how to use PHP to write to a file and how to execute shell commands. This article is excerpted from chapter 10 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).
  • Handling File Data with PHP
    In this fifth part of an eight-part series on working with file and operating systems with PHP, you’ll learn how to read data from a file and move the file pointer. This article is excerpted from chapter 10 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).

Digest powered by RSS Digest