I used the getimagesize()
to get the size of an .swf
file on my xampp localhost server and it worked. But when I apply it on my site. It doesn't output anything.
So I made a test page to see if it would react the same way and it did. I echo the width only just to see if it gets any result at all, and on my localhost
, it gives me the output of 800
. But when I use it on my site, it gives no output at all...
<?php
$url= "http://cache.armorgames.com/files/games/sugar-sugar-3-17769.swf";
$tst = getimagesize($url);
echo $tst[0];
?>
Is there a reason why it probably wouldn't work? It makes no sense to me.