WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
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 Resources
Web Development Content
Internet Security Software
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
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example 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 ADD CODE EXAMPLES PRINT
Title : Creates a gif button on the fly. Requires GD support
Categories : Graphics, PHP Update Picture
Rasmus Lerdorf
Date : Jan 17th 1999
Grade : 4 of 5 (graded 3 times)
Viewed : 8954
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Rasmus Lerdorf
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

/* Include the following function in your script: */

function button($text) {
$enc_text = urlencode($text);
echo "<img src="button.php3?$enc_text" border=0 Alt="$text">";
}


/* Then create a button.php3 which contains: */

<?
Header( "Content-type: image/gif");
$string=implode($argv, " ");
$im = imagecreatefromgif( "/button1.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImageGif($im);
ImageDestroy($im);
?>

/*

button1.gif is a 135x40 GIF background for the button. I use a dark blue
background with bevelled edges and as the above example reflects, orange
text. Experiment with the colours and the sizing algorithm if you change
the background image size. You should also change the path to the
button1.gif image to reflect where you have your images within your web
tree.

button1.gif is available at
http://www.sklar.com/px/files/graphics/button1.gif

*/



Barcodes On The Fly With GD
Categories : Ecommerce, Graphics, HTML and PHP, PHP
How to check if a file is of type gif or jpg?
Categories : PHP, Regexps, Graphics
PHP interface class to the eBusiness Charts generatation remote service.
Categories : PHP, PHP Classes, Graphics, Charts and Graphs
Read DPI value from image with PHP
Categories : PHP, Graphics, Filesystem
Annual Bar Chart
Categories : Graphics, PHP, Charts and Graphs
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
Image Generation Class ( PNG Format )
Categories : PHP, GD image library, PHP Classes, Graphics
This is a script that list all image files on a given directory, and displays the thumbnails nicely formated within an HTML table. It also make use of JavScript to open pop up windows when the users want to see the full photo.
Categories : Graphics, PHP, Complete Programs, Java Script
Create images on fly using GD-Image Lib
Categories : PHP, Graphics
The simple counter with use MySql and gd.
Categories : MySQL, HTTP, Graphics, PHP, Databases
Simple PHP Bar Graph using GD library
Categories : PHP, GD image library, Graphics, Arrays
Line graphics generation library written in PHP + GD library (spanish comments)
Categories : PHP, Graphics, GD image library
a simple pie-chart in php3 (with gd)
Categories : PHP, Graphics, GD image library, Charts and Graphs
A captcha image allows you to prevent spam posting when users reload the page and stop bots from submitting forms automatically. This version allows you to use your own fonts (.ttf) to show the text.
Categories : PHP, Security, Graphics, GD image library
EasyPhpThumbnail Class - The EasyPhpThumbnail class allows you to generate thumbnails and handle image manipulation for GIF, JPG and PNG on-the-fly.
Categories : PHP, PHP Classes, Object Oriented, Graphics, GD image library
 Nehal dave wrote : 136
cant create any image through php.... cant find what is 
wrong.. if anyone knows pls mail me ... i will be 
thankful.. 
 
 Joerg Kirchhoff wrote : 205
The picture is not available
 
 cyber priest wrote :452
the pX url changed to px.sklar.com so the url for the button is
http://px.sklar.com/files/graphics/button1.gif
now

greetz cpriest!SAE