Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
Bookmark :
Links :
wwwstoresprogrammershelp
finance products
Downloads :
Misc :
Webmaster ResourcesOnly PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming
image_string example
image_string example
<?php
Header("Content-type: image/jpeg");
//width and height of image
$width = 468;
$heigth = 60;
$image = ImageCreate($width,$heigth);
//black background
$black = ImageColorAllocate($image,0,0,0);
//for the text
$white = ImageColorAllocate($image,255,255,255);
/*
parameters for imagestring:
1: resource image, in this case $image
2: font, 1 to 5 are built in fonts in this case 3
3: int x, x co-ordinate in this case 10
4: int y, y co-ordinate in this case 20
5: string s, the string to be displayed in this case "hello world"
6: int col. the color to display the text in, in this case the variable $white
*/
imagestring($image,3,10,20,"Hello World",$white);
//output jpeg
ImageJpeg($image);
//clean up
ImageDestroy($image);
?>
Books :
Sponsors :
Random Code :
check for a valid date(date/time)Find all links(internet)
Check if an image exists(image)
Random Article :
PHP my favorite Server side Programming TechnologyNetwork:
Programming resourcesTutorials directory
Clickbank mall
sell software
Free auctions, low cost stores
UK products
US products
Gambling directory
Sexy free wallpapers
Hosting resources
ASP site
DVD site
Domain names
Dating site
Software directory
Maxi directory
bigarticle : free articles
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google