Try like this:
list($width, $height) = getimagesize('path_to_image');
Make sure that:
- You specify the correct image path there
- The image has read access
- Chmod image dir to 755
Also try to prefix path with $_SERVER["DOCUMENT_ROOT"]
, this helps sometimes when you are not able to read files.