Re: Flash .swf outside webroot: width and height problems

From: Date: Tue, 20 Jan 2004 18:16:24 +0000
Subject: Re: Flash .swf outside webroot: width and height problems
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-175169@lists.php.net to get a copy of this message
Thx for the fast response. Yes, I am doing that with the images... works fine. I also thought about using either an iframe or a div to control the size of the movie. It would have been nicer to be able to use a regular object tag, as it gives you more control over how the movie displayed. But I guess you can't write the tag and just do a <PARAM NAME=movie VALUE="show.php?id=xy" etc. and have the show.php output the header... May have to go for the div/iframe solution. If anyone can think of another way, I'd be happy to try it. Thank you, John. toby ----- Original Message ----- From: "CPT John W. Holmes" <holmes072000@charter.net> To: "Toby Irmer" <php@irmer.com>; <php-general@lists.php.net> Sent: Tuesday, January 20, 2004 7:12 PM Subject: Re: [PHP] Flash .swf outside webroot: width and height problems > 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... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#175169) next »