Whenever I try to use getimagesize to get the dimensions of an image, it give me the "unable to open '<URL>' for reading" error, even through if I paste that URL into a browser it shows the image and has, for example, "(GIF Image, 630x92 pixels)" in the title of the page. The image stored in a mysql database as a blob, so the URL I send is actually a page that queries for the image and pieces it back together. I got the script from a codewalkers tutorial here, http://codewalkers.com/tutorials/35/1.html, and used the modified comment titled "07.19.05 - Final code modified - Includes image dimensions", with very few changes otehr than the names of the pages that I use. Uploading and viewing works fine, I just can't get the dimensions which I need for resizing and creating thumbnails.
Anyway, I'm not really concerned with any of that if I can find another way to get the image dimensions. I'm not really good with this part of php so I don't know if there is any other way. Since these images are uploaded by users, would it be possible to get the dimensions when the image is uploaded, so I can then save it in the database along with the image? Does anyone know any other way to get this imformation?