PHP Article Index

1. HTTP Fetching in PHP Without cURL
Created Jul/2010

How to fetch pages via HTTP using PHP when cURL is not available.

2. Forking with PHP from the Command Line
Created Jul/2010

How to fork a process in PHP to run a task concurrently, with hints on how to avoid race conditions.

3. Simple PHP & MySQL Pagination
Created Jul/2010

How to paginate MySQL into result pages using PHP and MySQL.

4. A Quick and Efficient URL Shortener Script, Using PHP & MySQL
Created Jul/2010

A very simple and effective URL shortener that uses PHP, MySQL and MySQL's partitioning facilities.

5. Broken Link Checker: Check Broken Links with PHP
Created Jul/2010

How to easily check for broken links and files on webpages using a PHP script and cURL from the command line.

6. Parsing HTML with PHP
Created Jul/2010

A short and effective method of gathering specific HTML data from a webpage, including hyperlinks and their anchor text.

7. Colour Coding PHP Output in HTML
Created Aug/2010

A brief look into colour coding PHP scripts for webpages by using HTML markup.

8. How to Create Website Thumbnails with PHP
Created Aug/2010

A script and instructions on how to create image thumbnails of website pages using PHP, Firefox and a Firefox plugin.

9. A Simple PHP/XML Sitemap Generator
Created Oct/2010

An XML sitemap generator and maintainer written in less than 100 lines of PHP code. Easy to maintain and use.

10. A Simple PHP/MySQL Authentication Script for Logins
Created Mar/2011

A compact and simple PHP script that stores data in MySQL and authenticates users via a login script.

11. Storing Websites in Memory Using PHP
Created Apr/2011

An example of speeding up websites by storing regularly accessed data in memory

12. Preventing E-Mail Header Injections with PHP mail()
Created Jul/2011

How to avoid abuse of your publicly accessible contact forms that use PHP\'s mail() function.

13. A Simple PHP Password Generator
Created Jul/2011

A simple function to generate passwords, ten lines in length and with optional complexity.

14. A Simple PHP .htpasswd Manager
Created Jul/2011

A compact PHP class that adds, edits and deletes htpasswd users.

15. Creating a Directory Tree with PHP & MySQL (Part 1)
Created Aug/2011

How to efficiently create and store a tree hierarchy using PHP and MySQL. Ideal for website directories.

16. Creating a Directory Tree with PHP & MySQL (Part 2)
Created Aug/2011

A Celko SQL tree with a PHP frontend, GUI script to display data in HTML format.

17. Creating CSS Sprites with PHP
Created Sep/2011

How to easily create CSS sprites using the functionality of PHP to save time.