Quantcast
9
Posts
1
Comments

About John Coggeshall

John Coggeshall is a PHP consultant and author who started losing sleep over PHP around five years ago. Lately you'll find him losing sleep meeting deadlines for books or online columns on a wide range of PHP topics. He maintains a PHP website packed full of PHP-related materials, tutorials, projects and more at http://www.coggeshall.org/. cover
A Dynamic PHP Thumbnail Gallery Part 2

Welcome back to part two of the Code Gallery Spotlight of the PHP based Photo Gallery called “AutoGallery”. Last week, I discussed with you the general idea of the AutoGallery’s image management and introduced the constructor used to initialize the variables in the AutoGallery class. This week, I’ll take a look at the two functions that the constructor calls after initialization resize() and cleanup() and how they perform the necessary management of the gallery images. Let’s start with the resize() function.

A Dynamic PHP Thumbnail Gallery part 1

Today I’ll be starting a new series focusing on the use of PHP’s image manipulation functions to create a sharp-looking web based photo gallery. If you have been working with PHP for any reasonable length of time (or for that matter, really looked at our own Code Gallery) you’ll notice that there have been many different types of PHP scripts focused on creating “thumbnail” images. This week’s spotlight takes that concept a few steps further and includes some great features like multiple-gallery support, the addition of a border around your thumbnails, and a gallery indexing system used to speed up the web page as a whole.

A Simple Web Search Engine

Every user expects a search engine on any Web site they visit. Unfortunately, search engines are extremely complex to develop. They require massive amounts of resources and time to implement. Today I’ll show you how to use a MySQL (or any SQL database) to create your own basic search engine.

Search Engine Friendly PHP Pages

When writing scripts, it is extremely important to have to ability to transfer information from one script to another. A common method to do this is with the GET convention. Search engine Web spiders, however, tend to ignore pages whose URL contains GET method parameters. If you’re not sure what a GET method parameter is, here’s an example of a URL with GET method parameters:

Working with Permissions in PHP, Part 1

In the past few columns, I have been discussing using PHP’s file I/O capabilities for manipulating both files and directories. This week, we’ll take a slight detour from a strictly PHP-related subject and discuss file permissions in Unix systems. If you are using PHP in a Windows environment (or other environment without a permission system), this column may not apply to you.

Arrays in PHP: Part 2

Today we’ll continue our discussion of arrays in PHP including the use of associative and multidimensional arrays.

In my last article, we introduced a new array data type in PHP and covered its fundamentals. Today we’ll dive deeper into arrays and introduce a type of array called an associative array and a more complex type of array — the multidimensional array.

Arrays in PHP: Part 1

What exactly is an array?

An array is a variable type in PHP that allows the programmer to associate one value directly to another value or simply take a set of data and organize it into a list format (much like a table). It can be used in many ways to store and organize data quickly and efficiently. It is one of the more useful data types available to any programming language.

Creating PDF Files in PHP

The PDF (or portable document format) file is an amazingly versatile format for transferring what usually starts as a hard copy version of a document over the Internet.

Basic PHP Syntax
· 1

This article covers basic PHP syntax, including variable usage, variable types, and several ways of printing variables to the web browser.