Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:08:20
2

Imageline

Tuesday, February 10, 15, 12:00:44, 3 Yaers Ago Via wain, Hits: 3090
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

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

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.

PHP Mail

Sends an email.

PHP File Create

Create and write data to a file using the php frwite function.

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

Contact Us Form With Captcha

A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website. Features: Captcha Image, HTML output.

PHP Forms

FREE PHP forms

GuestBook PHP Script

Allow visitors to leave messages on your site. It features easy install, admin notification, and control panel to remove unwanted entries.

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.
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.