Ad block is installed and active. Please support us by disabling it.
HomeThursday, September 21, 2017, 03:14:02
2

PHP imagecreate

Tuesday, February 10, 15, 12:02:30, 3 Yaers Ago Via wain, Hits: 2600
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

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

Upload and Resize an Image with PHP

Tutorial - How to upload and resize image with PHP

Inserting form data in MySql table

Inserting form data in MySql table with PHP

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

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.

PHP Redirect

Header (location) redirect must be processed before any output to the browser.

Contact Us 2.0. with HTML Page and Pop Up Frame

This is the same Contact Us 2.0. that is in this forum, But I have added more options to this script and a html page with a very nice pop Up frame that DONT get block by any pop Up software. Many websites use this type of script to bypass the blocking…

Upload File with PHP

Basic file uploading with PHP

PHP/MySQL Bookmarklet - PHP Tutorial

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

Creating a CAPTCHA with PHP with imagecreate

This tutorial will show you how to create a form with Captcha, Requirement(s): PHP Server, GD Graphics Library
About Author

wain

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