Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:52:33
2

PHP imagecreate

Tuesday, February 10, 15, 12:02:30, 3 Yaers Ago Via wain, Hits: 5809
imagecreate() returns an image identifier representing a blank image of specified size.
Example:

Code:
<?php
header("Content-type: image/png");
//create a new palette based image (350(width), 30(height))
$im = imagecreate(350, 30);
//background color
$background = imagecolorallocate($im, 255, 250, 205);
//text color
$color = imagecolorallocate($im, 050, 050, 050);
//imagestring($im, 2(font size), 5(margin-left), 18(margin-top)
imagestring($im, 2, 15, 8, "PHP is an open-source server-side scripting language.", $color);
//imagepng - output image to the browser
imagepng($im);
imagedestroy($im);
?>

Sign In

Sponsor

Related

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

Prevent the error loading XML – libxml_use_internal_errors

libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling.

Email Link

HTML email link example

PHP Form Action Self Submit

PHP form action self submit tutorial, requirement(s): PHP server

PHP/MySQL Bookmarklet - PHP Tutorial

PHP/MySQL bookmarklet, bookmark current page, PHP/MySQL tutorial.

Preventing multiple form submissions

Preventing multiple form submissions

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

Site Recommendation

This script will allow your visitors to recommend your site to their friends.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Sun, Mar 18, 18
So far has created 115 entries.
wain
This author has not yet filled in any details.