SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Gathering image data?
-
Dec 30, 2006, 15:51 #1
- Join Date
- Mar 2003
- Location
- Coronado
- Posts
- 1,666
- Mentioned
- 3 Post(s)
- Tagged
- 0 Thread(s)
Gathering image data?
I have a formm that uploads up to 6 images, once that is done, I'd like to display each image along with some info about each image before I approve them, like file size (in kilobytes), Length:, Width:, File Type (making sure its in image format. Im pretty sure getimagesize() is perfect for the last three but am sort of confused how to echo out the 3 values...Here is what I have soo far,...
PHP Code:echo "<label>Image".$x.":</label><img src=../images/ASP_Images/".${'Image'.$x}. " /><br />";
echo ${'Image'.$x} . ': ' . filesize("../images/ASP_Images/".${'Image'.$x}) . /1024 " Kb";
Thanks all
Oh, and this code runs through a for loop up to 6 times if needed"Oh, and Jenkins--apparently your mother died this morning."
-
Dec 30, 2006, 22:19 #2
- Join Date
- Mar 2006
- Posts
- 6,132
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
the manual provides sample usage for most functions.
Bookmarks