RE: [PHP] Flash .swf outside webroot: width and height problems
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 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. I have a couple of pages that are sprinkled with flash, this is how I got it to work (from the macromedia site) -sorry for the bad word wrapping http://download.macromedia.com/pub/shockwave/cabs/flash/swflas h.cab#version=6,0,29,0" width="200" height="640"> http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" width="200" height="640"> hope that helps, Craig > Thank you, John. > > toby > > - Original Message - > From: "CPT John W. Holmes" <[EMAIL PROTECTED]> > To: "Toby Irmer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Tuesday, January 20, 2004 7:12 PM > Subject: Re: [PHP] Flash .swf outside webroot: width and > height problems > > > > 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? > > > > > > > > > > > > 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 > > > > > > > > ---John Holmes... > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash .swf outside webroot: width and height problems
>But I guess you can't write the tag and just do a VALUE="show.php?id=xy" etc. and have the show.php output the header... Sure you can, as long as show.php outputs a valid flash file and the correct content-type. As far as the browser is concerned, it's the same as any other flash file. - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash .swf outside webroot: width and height problems
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 To: "Toby Irmer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 20, 2004 7:12 PM Subject: Re: [PHP] Flash .swf outside webroot: width and height problems > 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? > > > > > > 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 > > > > ---John Holmes... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash .swf outside webroot: width and height problems
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? 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 ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php