Solved

getting uplaoding img width and height info

Posted on 2001-06-25
3
259 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Installer 5 38
How to submit record from external php form to a Sharepoint list? 5 55
Email called spam 5 36
jQuery force form POST 7 48
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 …

837 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