suggest an alternate to getimagesize() in JS or PHP
<p>For reasons unknown to mankind, I have been forbidden to use <code>getimagesize()</code>, is there any better alternate to <code>getimagesize()</code> which can handle timeouts if I open a remote image? I am also looking at JS options</p>

<p>Server guys tell me <code>allow_url_fopen</code> is turned off. I didn't check it :( My fault.</p>
