This tutorial will show you how to add such a text size switcher to your Web pages using PHP and CSS, thereby immediately making your Web site more accessible and scoring you useful brownie points from everyone over the age of 50.
Image_GIS is a PEAR package for PHP that allows you to add digital maps to Web sites using free downloadable GIS files. Learn how to use the Image_GIS package to add mapping functionality to a Web site.
Harry takes us one step further into the world of Web Services. Here he explains how to build your own Web Service - a news feed - using PHP and XML-RPC.
Step by step tutorials describing how to build Apache and PHP on various Unix flavours, including how to build every component and library they depend on.
The Text_Diff PEAR class makes it possible to compare file contents in the PHP environment and render the output in various formats. This tutorial demonstrates this class in action, illustrating how you can use it to dynamically compare file contents with PHP and render the results as a Web page.
This article introduces a toolkit designed specifically for manipulating configuration files, thereby reducing the number of lines of code needed to read and modify application variables. This toolkit is written in PHP and implemented as a class, suitable for use in any PHP-based application and accessible via standard OO techniques.
One way to provide visually impaired users with the ability to use OCR-defeating passcodes is to stitch WAV files together. Phillip Perkins shows you how to deconstruct a group of WAV files and reconstruct one large WAV file by compiling the group.
This article will give you the capabilities to handle errors in an elegant manner without diverging too much from your lazy ways. We will look at how to handle PHP script errors, as well as passing around your own errors with the PEAR module: PEAR_Error.
PHP comes with a full-featured file and directory manipulation API that allows you (among other things) to view and modify file attributes, read and list directory contents, alter file permissions, retrieve file contents into a variety of native data structures, and search for files based on specific patterns. This file manipulation API is both powerful and flexible - two characteristics that will endear it to any developer who's ever had to work with file manipulation commands.
This second segment of the tutorial on the PHP filesystem API takes you into deeper waters, showing you how to copy, delete and rename files; scan directories; work with uploaded files over HTTP; perform pattern matches on file names; and read and write to processes instead of files.
A series of tutorials on using PHP to access GIS mapping information. The tutorials start with the basics, build on them, and provide many examples for more complex functions.
Conditional probability -- the probability of observing one event as a result of having observed another event -- is a potentially important factor in designing intelligent Web applications. Paul Meagher introduces Bayesian inference by discussing the basic mathematical concepts involved and demonstrating how to implement the underlying conditional probability calculations using PHP.
Database transactions are important for data reliability and consistency. Used properly, they can prevent many types of errors. Used improperly, they can cause many other kinds of errors. Kimberlee Jensen demonstrates using transactions with PHP well.
Describes how to send XHTML with the correct mime type safely using PHP. Includes the ability to "fall back" to HTML if the viewing web-browser does not support XHTML.
In contrast with other open source languages like Perl and Python, PHP lacks a robust community effort to develop a math library. This article provides an example of a PHP math library called SimpleLinearRegression that demonstrates a general approach that can be used to develop PHP math libraries.
Most Web applications interact with a database, and the data stored therein frequently originates from users. Thus, when creating an SQL statement, a developer may use client data in its construction. This article explains SQL injection by looking at a few example attacks and then introducing some simple and effective methods for prevention. By applying these best practices, you can practically eliminate SQL injection from your list of security concerns.
This tutorial will show you how to produce static html pages using PHP. This is important if you want the benefits of using PHP to build sections of a site where the content of the pages doesn't change very often.
Demonstrates a technique for preventing spambots from submitting forms, using questions such as "which day comes after Tuesday?" or "spell the number 7 in lowercase letters".
Luis Yordano Cruz demonstrates three-tier PHP application design with PEAR::DB_DataObject, Smarty, and PHP 5. The article assumes that you have some familiarity with HTML, Smarty, PEAR::DB_DataObject, MySQL, and PHP 5.
BB code is a simple set of instructions that provide rules as to how a piece of text should be formatted. In this hands-on tutorial, Stoyan explains the basics that every developer should know about the use of BB code in PHP applications.
An easy to follow tutorial which focuses on the most elementary PHP concepts. Suitable for people who have heard of PHP, but who have never actually seen or written PHP or any other programming language.
Article by Sharon Machlis in ComputerWorld. Explainer on the PHP scripting language and what IT managers should know about it. Includes an interview with PHP creator Rasmus Lerdorf and links to other Web resources. (February 4, 2002)