Ad block is installed and active. Please support us by disabling it.
HomeMonday, November 20, 2017, 09:14:33
1

Getimagesize

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

HTML Button Generator

This script will allow your visitors to create HTML Buttons online. To use the "html button generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

Preg_Match - PHP Form Validation

PHP form validation with preg_match

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0

Contact Us 2.0. :: PHP Form

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

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

Inserting form data in MySql table

Inserting form data in MySql table with PHP

Process Form Data with Jquery

jQuery, Process form data

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.

View content in a zip file with PHP

List all files in a zip archive with PHP
About Author

cilipe

Date Registered: Mon, Feb 16, 15
Last Time Online: Wed, Feb 18, 15
So far has created 2 entries.
cilipe
This author has not yet filled in any details.