HomeSunday, June 24, 2018, 01:35:39
2

Imageline

Tuesday, February 10, 15, 12:00:44, 3 Yaers Ago Via wain, Hits: 6444
Draws a line between the two given points.
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);
//border color
$border = imagecolorallocate($im, 162, 37, 0);
//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);
//imageline - draws a line between the two given points.
//border-left
imageline($im, 0, 0, 0, 30, $border);
//border-top
imageline($im, 0, 0, 350, 0, $border);
//border-right
imageline($im, 349, 0, 349, 29, $border);
//border-bottom
imageline($im, 0, 29, 349, 29, $border);
//imagepng - output image to the browser
imagepng($im);
imagedestroy($im);
?>

Sign In

Sponsor
Related

PHP form with image upload

Advanced Contact Form with email and form field validation.It allows your visitors to send you an email directly from your website.Features: Image Upload, HTML Output, Captcha Image.

Preventing multiple form submissions

Preventing multiple form submissions

PHP Write to File

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

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

Getimagesize

Getimagesize function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondant HTTP content type.

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

PHP DateTimeZone

PHP representation of time zone

Creating a Math CAPTCHA with PHP - PHP Tutorial

This tutorial will show you how to create a form with Math Captcha.

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL
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.