| | Date | Title | Author | Hits |
| | 12-21-11 | | Alejandro Gervasio | 21728 |
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. |
| | 12-12-11 | | Apress Publishing | 30226 |
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). |
| | 12-07-11 | | Apress Publishing | 14417 |
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). |
| | 11-29-11 | | Apress Publishing | 22760 |
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). |
| | 11-23-11 | | Apress Publishing | 13888 |
In this fourth part of an article series on working with the file and operating systems with PHP, you'll learn about file ownership and permissions, and the concept of a resource. 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). |
| | 11-16-11 | | Alejandro Gervasio | 27564 |
In this second part of a two-part series on the ArrayObject class from the Standard PHP Library, you'll learn how to handle properties by means of an object syntax. |
| | 11-16-11 | | Alejandro Gervasio | 19582 |
In this first part of a two-part tutorial, I demonstrate how simple it is to use the ArrayObject SPL class. This class permits you to easily access properties through an array syntax. |
| | 11-15-11 | | Apress Publishing | 7992 |
In this third part of an eight-part article series on using PHP to work with the file and operating system, you'll learn how to retrieve the size of a directory and find out a file's last access and modification times. 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). |
| | 11-09-11 | | Apress Publishing | 8093 |
In this second part of an eight-part article series on the tools PHP provides for working with the file system and operating system, we'll go over file types, links, and how to calculate file, directory and disk sizes. 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). |
| | 11-04-11 | | Apress Publishing | 9888 |
PHP as a language offers the programmer an excellent array of tools for handling file system input and output, as well as executing programs at the shell level. This article series will introduce you to these tools. It 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). |
| | 10-31-11 | | Alejandro Gervasio | 10727 |
In this third part of a series on proxy objects, we'll create a simple service layer to add to our blog program. With this finished application, you'll see exactly how proxy objects can be powerful allies when you need to persist the entities of a domain model in a database. |
| | 10-24-11 | | Alejandro Gervasio | 10863 |
In this second part of a three-part tutorial, I add to the existing structure of our sample blog program a host of useful components. These include the classes that handle collections of entities and views, and most importantly, the ones responsible for lazy-loading domain objects from the database. |
| | 10-24-11 | | Alejandro Gervasio | 18979 |
In this first part of a three-part tutorial, I introduce you to what proxy objects are and how they can be used for lazy-loading domain objects in PHP. In this case, I will show you how to use proxies in the development of a blog application, to fetch on request the comments associated with a given post. |
| | 10-17-11 | | Alejandro Gervasio | 27613 |
If you’re looking for an approachable guide that teaches you how to implement an easily-customizable service layer in PHP, then take a peek at this article series. In a step-by-step fashion, it walks you through the development of a sample web application, which uses a service to perform CRUD operations on a domain model composed of a few user entities. |
| | 10-17-11 | | Alejandro Gervasio | 10991 |
In this penultimate part of the series, I put the finishing touches on the previous service layer by adding a couple of basic dependency injection containers along with a static helper to it. These can be used by client code to construct a specified service in a valid state. |