Assuming you have GD enabled, you can do something like this:
<?php
$im = ImageCreateFromJPEG("/path/to/image.jpg");
$width = ImageSX($im);
$height = ImageSX($im);
ImageDestroy($im);
?>
Alternatively, if you have compiled using --enable-exif (this is default in the Win32 binaries) you can do:
<?php
$im = read_exif_data("/path/to/image.jpg");
echo "Width: " . $im["Width"] . "<br>\n";
echo "Height: " . $im["Height"] . "<br>\n";
?>
HTH.
geoff