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

Imageline

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

MySQL Basic Functions

MySQL Basic Functions - select, delete, update..

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.

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.

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Show / Hide Div with CSS

CSS Display and Visibility:The visibility property specifies whether or not an element is visible.

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

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.

PHP Jquery Form

PHP Jquery Form allow your visitors to contact you directly from your website.

Contact Us PHP Form 1.1.

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

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: Sun, Mar 18, 18
So far has created 115 entries.
wain
This author has not yet filled in any details.