Solved

getting uplaoding img width and height info

Posted on 2001-06-25
3
251 Views
Last Modified: 2006-11-17
Hi,
   I would like to know if there's any way to get the img's width and height for an uploading image while they try to upload an image using FORM. Thanks for your help
0
Comment
Question by:swonge
3 Comments
 
LVL 1

Expert Comment

by:katyan
ID: 6225010
i don't think so. it's after all binary data that u get when a form is submitted.
0
 
LVL 15

Accepted Solution

by:
a.marsh earned 50 total points
ID: 6225623
Once the file has been uploaded to the server (and ideally once you've copied the file to wherever it needs to go) you simply need to use this PHP function:

http://www.php.net/manual/en/function.getimagesize.php

:o)

Ant
0
 

Author Comment

by:swonge
ID: 6226129
Thanks for your help, it suit exactly what I have to do.  Thank you so much =)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with Simple PHP/mySQL Query 3 51
<? versus <?php 5 36
Site hacked - decoding the PHP? 15 57
xampp tool 12 24
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now