Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:42:27
2

PHP imagecreate

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

Imageline

Draws a line between the two given points.

PHP Date Examples

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

Email Link

HTML email link example

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

Link Generator PHP Script

This script will allow your visitors to create links online.To use the "link generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

PHP $_SESSION

Session_start creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie.

Upload Attachment - PHP Tutorial

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

Process Form Data with Jquery

jQuery, Process form data

How to check checkbox checked

Checking if checkbox is checked with jQuery

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.
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.