Check if jpg is progressive or not

hello,

Flash only works with non-progressive jpgs,
i’m making an upload module for images, but how do I check if an jpg is progressive or not??

I know imageInterlace() exists in php, but I’m not that experienced to know if that would work.

tnx