Hi there,
I have a site with just a few pages. (e.g. home.php)
In every page there is another page included with things
like the header etc.
The included file is in a subdirectory called "include".
There are two functions written in this included file:
=============== =============== =============== =============== ===============
function doImage($image)
{
list($width, $height, $type, $attr) = getimagesize($i mage);
echo "<img src=$image width=\"$width\ " height=\"$heigh t\">";
};
function doFlash($Movie, $Height,$Width)
{
echo "<object classid=\"clsid :D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http ://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0\"
height=\"$Heigh t\" width=\"$Width\ ">
<param name=\"movie\" value=\"$Movie\ ">
<param name=\"quality\ " value=\"high\">
<param name=\"allowsca le\" value=\"true\">
<param name=\"SCALE\" value=\"exactfi t\">
<param name=\"menu\" value=\"false\" >
<param name=\"wmode\" value=\"transpa rent\">
<embed src=\"$Movie\" width=\"$Width\ " height=\"$Heigh t\"
menu=\"false\" wmode=\"transpa rent\" allowscale=\"tr ue\"
scale=\"exactfi t\" quality=\"high\ "
pluginspage=\"h ttp://www.macromedia. com/go/getflashplayer\ "
type=\"applicat ion/x-shockwave-flash\"></embed>
</object>";
};
=============== =============== =============== =============== ===============
I call the functions from pages in the root directory, pages like
home.php...
When i call doImage("img/logo.gif"); it works well, but when i
call doFlash("swf/logo.swf","100p x","100px"); It returns everything
before
the <html> tag starts, so it isn't in the right place either. When i
change
the "echo"-statement of doFlash() to "return" nothing happens and it
disappears in the source (online)
What am i doing wrong?
Hope someone can help...
Greetings knoakske
I have a site with just a few pages. (e.g. home.php)
In every page there is another page included with things
like the header etc.
The included file is in a subdirectory called "include".
There are two functions written in this included file:
=============== =============== =============== =============== ===============
function doImage($image)
{
list($width, $height, $type, $attr) = getimagesize($i mage);
echo "<img src=$image width=\"$width\ " height=\"$heigh t\">";
};
function doFlash($Movie, $Height,$Width)
{
echo "<object classid=\"clsid :D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http ://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0\"
height=\"$Heigh t\" width=\"$Width\ ">
<param name=\"movie\" value=\"$Movie\ ">
<param name=\"quality\ " value=\"high\">
<param name=\"allowsca le\" value=\"true\">
<param name=\"SCALE\" value=\"exactfi t\">
<param name=\"menu\" value=\"false\" >
<param name=\"wmode\" value=\"transpa rent\">
<embed src=\"$Movie\" width=\"$Width\ " height=\"$Heigh t\"
menu=\"false\" wmode=\"transpa rent\" allowscale=\"tr ue\"
scale=\"exactfi t\" quality=\"high\ "
pluginspage=\"h ttp://www.macromedia. com/go/getflashplayer\ "
type=\"applicat ion/x-shockwave-flash\"></embed>
</object>";
};
=============== =============== =============== =============== ===============
I call the functions from pages in the root directory, pages like
home.php...
When i call doImage("img/logo.gif"); it works well, but when i
call doFlash("swf/logo.swf","100p x","100px"); It returns everything
before
the <html> tag starts, so it isn't in the right place either. When i
change
the "echo"-statement of doFlash() to "return" nothing happens and it
disappears in the source (online)
What am i doing wrong?
Hope someone can help...
Greetings knoakske
Comment