Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:55:27
1

Getimagesize

Tuesday, February 10, 15, 13:13:49, 3 Yaers Ago Via wain, Hits: 5829
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.
Example:
Code:
<?php
list($width, $height) = getimagesize('myimage.png');
echo "Image Width = " . $width . " - Image Height = " . $height;
if ($width > 990 || $height > 990) {
echo "<br>Maximum width and height exceeded. Please upload images below 990 x 990 px size";
exit();
}
?>

Sign In

Sponsor

Related

Upload Image With PHP

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

Math Captcha V6

PHP Math Captcha Image Version 6

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

PHP File Create

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

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.

Link Base 2.0.

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.

ShoutBox 1.1. PHP Script

ShoutBox allows your users to post short messages on your site. The script is lightweight and very easy to install and use.

PHP Form Action Self Submit

PHP form action self submit tutorial, requirement(s): PHP server

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server
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.