Ad block is installed and active. Please support us by disabling it.
HomeFriday, September 22, 2017, 00:46:13
1

Getimagesize

Tuesday, February 10, 15, 13:13:49, 3 Yaers Ago Via wain, Hits: 2594
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

Preg_Match - PHP Form Validation

PHP form validation with preg_match

Smarty - Create dynamic Web Pages with PHP & MySQL

Creating Dynamic Web Pages Using Smarty and MySQL - Requirement(s): PHP Server, MySQL

Process Form Data with Jquery

jQuery, Process form data

PHP Form Action Self Submit

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

MySQL Inner Join

MySQL Inner Join - Creating Dynamic Webpages Using PHP and MySQL, Requirement(s): PHP Server, MySQL

PHP Write to File

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

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.

PHP Jquery Form

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

PHP filesize

The filesize function returns the size of the specified file.

MySQL – Select from two tables

Select data from two tables, PHP MySQL
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.