HomeFriday, June 23, 2017, 07:00:00
1

Getimagesize

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

Filter Words in PHP - PHP Tutorial

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

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf

PHP Form Basic

PHP Form - PHP form basic, Requirement(s): PHP Server

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.

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.

How to check checkbox checked

Checking if checkbox is checked with jQuery

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.

PHP Form Validation

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