Tag: PHP

Create Dynamic Images With PHP/MySQL

Create Dynamic Images With PHP/MySQL

posted by John Owen on August 5th, 2009, in PHP, Web Design | 2 Comments

Learn how to generate dynamic images in PHP, some uses are tracking visitors with an image, displaying the users name in the image or the time/date. In this tutorial you will convert an email address from a database to an image (just like facebook) to protect from email spiders.

Using SimpleXML To Read & Parse XML

Using SimpleXML To Read & Parse XML

posted by John Owen on July 17th, 2009, in PHP | 14 Comments

In this tutorial I will teach you how to use SimpleXML to read & parse XML feeds. Before PHP5 reading XML was a mess, this all changes with SimpleXML. You will learn how to parse a standard XML RSS Feed and display it and many other functions.

Using Functions Effectivley In PHP

Using Functions Effectivley In PHP

posted by John Owen on July 11th, 2009, in PHP | 4 Comments

Today I will show you how to use functions in PHP effectivley and get the most out of them. Functions can be very useful and can save a lot of time if you have a piece of PHP code that needs to be run very often.

Limiting text by a number of characters/words (strrpos).

Limiting text by a number of characters/words (strrpos).

posted by Danny on July 1st, 2009, in PHP | 1 Comment

If you need to display source text, but you only want to show an excerpt of it and you will probably use the function strrpos to cut your text by a number of characters. This can look ugly as it cuts the text mid-string. Beneath is a tutorial showing you how to cut your text [...]

Random Numbers in PHP – Random Dice Roller

Random Numbers in PHP – Random Dice Roller

posted by Danny on May 28th, 2009, in PHP | 9 Comments

This tutorial will take a brief look at using random numbers in PHP. I’ve used a dice rolling example to demonstrate how the rand() function can be used to select an image at random. This example can be implemented and used for other applications such as an ad rotation script.