From: "Toby Irmer" <[EMAIL PROTECTED]>

> I am trying to display an .swf-file that is stored outside the webroot.
>
> Just sending the header and doing a readfile on the swf results in the swf
> being displayed with the maximum available width and height.
>
> Does anyone know a way of displaying Flash with its correct dimensions if
it
> is stored outside the webroot?

Do you just have a "flash.php" file that sends the flash headers and data?
If so, then there's probably not a way just using that method.

You can embed it within a HTML page, though, maybe inside a div to control
the size?

<div style="width:50%;height:50%">
<embed src="flash.php?id=xx">
</div>

Obviously not the correct syntax b/c I don't know it, but you get the idea,
I hope... This is the same method you'd control the height and width of a
PHP generated image

<img src="pic.php?id=xx" width="50" height="50">

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to