HomeSunday, June 24, 2018, 01:37:31
1

Getimagesize

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

PHP $_SESSION

Session_start creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie.

PHP Form Action Self Submit

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

Preg_Match - PHP Email Validation

Validate email with preg_match in php

MySQL to RSS

Publishing MySQL data in RSS

How to check checkbox checked

Checking if checkbox is checked with jQuery

Creating a basic bad word filter in PHP

This tutorial will show you how to create a basic bad word filter in PHP

Upload Attachment - PHP Tutorial

Upload attachment with PHP example, Requirement(s): PHP server

Inserting form data in MySql table

Inserting form data in MySql table with PHP

Addslashes - Stripslashes

addslashes — quote string with slashes, stripslashes — un-quotes a quoted string

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.
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.