HomeSunday, June 24, 2018, 01:38:39

PHP imagecreate

Tuesday, February 10, 15, 12:02:30, 3 Yaers Ago Via wain, Hits: 6135
imagecreate() returns an image identifier representing a blank image of specified size.

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

Sign In


Preg_Match - PHP Form Validation

PHP form validation with preg_match

How to check checkbox checked

Checking if checkbox is checked with jQuery

PHP File Create

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


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.

Random MySQL Query

Random MySQL query, requirement(s): PHP Server, MySQL

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Link Base L.1.1.

This script allows you to manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links. The script is easy to customize to suit your needs.

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.

Adsense crawler errors and robots.txt

How to fix Google AdSense crawler errors in robots.txt
About Author


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