Ad block is installed and active. Please support us by disabling it.
HomeMonday, January 22, 2018, 18:20:27
1

Getimagesize

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

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

PHP form with file upload

Advanced Contact Form with email and form field validation. It allows your visitors to send you an email directly from your website.

How to insert new line (IP Address) with fwrite

How to insert new line (IP Address) with fwrite, Get IP address and write to file.

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

PHP highlight_string - PHP Tutorial

Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. Requirement(s): PHP Server.

FeedBack Form with Captcha

It allows your visitors to send you an email directly from your website.

Images In Textarea - CSS

Tutorial Images in Textarea

Inserting form data in MySql table

Inserting form data in MySql table with PHP
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.