Re: Flash .swf outside webroot: width and height problems
| From: | CPT John W. Holmes | Date: | Tue, 20 Jan 2004 18:12:10 +0000 |
| Subject: | Re: Flash .swf outside webroot: width and height problems | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175167@lists.php.net to get a copy of this message | ||
From: "Toby Irmer" <php@irmer.com>
> 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...