PHP get dimensions of remote file?

Jordan

New member
Right, basically I'm building a loader for SWF files.

Why?
At school they have managed to block the normal method which loads SWF files, fortunately they have not blocked a method where I can use javascript to dynamically load the SWF files.

How far am I?
I have got a fully working script so far, you type in the SWF URL into a HTML form which passes it to a php script.
This php script checks the remote files existence, if it exists it navigates to the game.php page passing the game SWF URL over the site URL.
If it cannot find the file it navigates to a 404 error page.

What do I need now?
I need to find a way to find the dimensions of this remote file, I can handle passing them to the game page myself.
(the SWF URL is stored in $filename)
I have tried a few times but all the ways I have found only work locally.

If anyone knows a way to do this then please help me :)
I've spent ages looking and trying and now it is 00:43AM, time for bed I think considering I need to get up at 7AM.

So any help would be greatly appreciated.

Thanks.
 
Back
Top