I am creating a script to upload a Picture and store information about it in a mysql db. I know you can do like "$file_size" do get its size but i was wondering if it is possible to get the file height and width, is there a command to do this?
There is, but you have to use some other things other than just php which may or may not be installed on your system. Often times you'll need the GD library and/or the jpeg and gif library's to get that information.
John
if it is installed: getimagesize(); http://be.php.net/getimagesize
If you don't have gd installed, you can use imageSX(), imageSY() for the width and height respectively.
geocities.com/akindele/