Intermediate

Data Structures for PHP Devs: Stacks and Queues

Data Structures for PHP Devs: Stacks and Queues

A data structure, or abstract data type, is a model that’s defined by a collection of operations that can be performed on itself and is limited by the constraints on the effects of those operations. It creates a wall between what can be done to the underlying data and how it is to be done. In this article, you’ll learn about two important data structures which have their conceptual origins in everyday usage: the Stack and the Queue.

Proc_Open: Communicate with the Outside World

proc_open: Communicate with the Outside World

There are many ways to interact with external processes, for example web services, message queuing systems, sockets, temp files, etc. Given the requirements of how and what you need to work with, you might find yourself working with the proc_open() function. It spawns a new command like exec(), but with open file pointers which can be used to send and receive data to achieve interprocess communication (IPC). This article will show you how easy it is to use this powerful function.

Extract Objects from an Access Database with PHP, Part 2

Extract Objects from an Access Database with PHP

The storage of a blob in a database is never a simple matter, and Microsoft’s Access database is no exception. Many programmers who need to migrate from legacy Access databases are stumped when confronted with the task of extracting files from OLE Object fields. In this series you’ll see how PHP can be used to extract objects from OLE types. This is part 2 and focuses on extracting PDFs and images.

This entry is part of the series Extract Objects from an Access Database with PHP

Extract Objects from an Access Database with PHP, Part 1

Extract Objects from an Access Database with PHP

The storage of a blob in a database is never a simple matter, and Microsoft’s Access database is no exception. Many programmers who need to migrate from legacy Access databases are stumped when confronted with the task of extracting files from OLE Object fields. In this series you’ll see how PHP can be used to extract objects from two OLE types: packages and Acrobat PDF documents. Part 1 focuses on OLE packages.

This entry is part of the series Extract Objects from an Access Database with PHP

Openbiz Cubi: A Robust PHP Application Framework, Part 1

Openbiz Cubi: A Robust PHP Application Framework

Openbiz Cubi is a robust PHP application framework giving developers the ability to create business applications with minimal effort. In this two-part series you’ll learn the concepts and steps necessary to create your own business web applications with Cubi. This part looks at the challenges web developers face and how Cubi can help.

This entry is part of the series Openbiz Cubi: A Robust PHP Application Framework

Safely Deprecating APIs

Safely Deprecating APIs

Deprecating features before they are done away or transformed gives users who depend on your code time to update their own code. By following the advice in this article, you will find it easier to keep your code fresh and your users won’t have any unhappy surprises.

Maven and PHP

Maven for PHP

Maven for PHP is a capable build automation tool for the PHP platform. Using Maven, the user only needs to provide the configuration for the project, while the configurable plugins do the work of compiling the project, running unit tests, generating API documentation and so on. Through this article you will gain familiarity with Maven for PHP, and how to install and use the PHP-Maven plugin from the command line and in Eclipse.

Crop and Resize Images with ImageMagick

Crop and Resize Images with ImageMagick

If your site allows users to upload photos, then image cropping/resizing functionality can certainly come in handy. Users might not have access to image programs like Photoshop, so by providing a cropping/resizing feature you can let them upload photos without them having to worry about the final size. See how you can create an image cropping tool with the help of the ImageMagick PHP extension.

Better Understanding Random

Better Understanding Random

Random values play an important role in many PHP applications, and many libraries and frameworks rely on them for generating tokens, salts, and as input for functions. This article gives you an overview of what random values are used for and why they’re important, and peeks under the hood of how they’re generated.

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved