WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Generating Images on the Fly With PHP
Categories : PHP, Graphics, GD image library
devarticles
devarticles
Date : 2002-01-11
Grade : 0 of 5 (graded 0 times)
Viewed : 9229
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


  Submit your own code examples 
 


Introduction

PHP, or PHP Hypertext Pre-processor, is one of the most popular scripting languages available to web developers. There are many reasons why PHP is now the most popular server-side scripting language for the Apache web server. Firstly, it supports database connectivity to a huge number of popular vendors, including Microsoft, Oracle and IBM. Secondly, with the correct libraries installed, PHP also supports real-time generation of images, PDF files, and even shockwave movie files! The only limit that bounds us when we’re developing with PHP is our imagination.

For developers like myself, one of the most popular features of PHP is real-time image generation. That is, we can create a new image canvas, “paint” it, and either save it to a file, or send it directly to the browser. In this article, I will show you how to create an image in real-time with PHP. The image will be similar to the ones used on yahoo.com and paypal.com, where a random number is generated inside of an image. That image is displayed in the browser, and you have to enter that random number into a text box to create a new account. This is a method that is becoming more popular, and it’s used to stop people from generating multiple user accounts in one go, which, is some cases, can crash the web server(s).

To handle the code described in this article, you should feel comfortable with the PHP scripting language at an intermediate level. Also, if you haven’t got the necessary libraries to generate images installed (explained in a minute), then you should be able to modify the php.ini file. In our example, we will be using PHP on a Windows 2000 machine running Apache (You can download apache for Linux or Windows from http://php.weblogs.com/apache_windows).

Read More...










An intro to using the GD image library with PHP
Categories : PHP, GD image library, Graphics
Dynamic Thumbnail Generation
Categories : PHP, Graphics, GD image library
Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
Working with Dates and Times in PHP
Categories : PHP, Date Time
Date Arithmetic With MySQL
Categories : PHP, Databases, MySQL, Date Time
PHP CLI and Cron
Categories : PHP, CLI, Cron
Aspect-Oriented Programming and PHP
Categories : PHP, Aspect Oriented Programming
Introduction to WAP using WML, ASP and PHP
Categories : PHP, WAP, WML
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation
Building XML Web Services with PHP NuSOAP
Categories : PHP, NuSOAP, XML
Building a Counter
Categories : PHP, Cookies
Who's Linking?
Categories : PHP, Beginner Guides, To PHP
Generating One-Time URLs with PHP
Categories : PHP, URLs
Static HTML Generation With PHP
Categories : PHP, HTML and PHP
Creating Auto-incrementing ID Fields with PHP and Oracle
Categories : PHP, PHP options/info, Databases, Oracle