Re: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread CPT John W. Holmes
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



Re: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread Toby Irmer
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 [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?

 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


-- 
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

2004-01-20 Thread Mike Migurski
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...

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

2004-01-20 Thread craig
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.

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

object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab#version=6,0,29,0 width=200 height=640
   param name=movie value=menu.swf?index=3
   param name=quality value=high
   embed src=menu.swf?index=3 quality=high
pluginspage=http://www.macromedia.com/go/getflashplayer;
type=application/x-shockwave-flash width=200 height=640/embed
/object

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?
 
  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
 

 --
 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