Tuesday, December 6, 2011

Adding PHP to the <object> tag

Hi everyone,



I have a flash banner rotator that runs using PHP at the
backend. The way in which the flash banner is called into the
script is by using the following PHP:



%26lt;? php include(''
http://www.mysite.com/banners'');
?%26gt;



I have also used this in other ways such as:



%26lt;?php $file = file_get_contents(''
http://www.mysite/banners'');
?%26gt;



I am struggling to incorporate this into the %26lt;object%26gt;
tag. Is there a way in which I can do this? Can I somehow get this
to work in the %26lt;param name=''movie''%26gt; tag? Or is there some
other method that I can use?



I should also mention that the file I am working with is a
'tpl' file. I do not think that these support PHP, but I may be
wrong.



Any help would be great as I am really struggling with this
one.



Kind regards,

JpAdding PHP to the %26lt;object%26gt; tag
If you custom developed the PHP or have access to code and
can follow it, you only need to output the static parts of the
OBJECT and EMBED tag and provide any dynamic values via PHP
variables.



If you are using a product that rotates ads and it cannot
handle Flash movies, contact the vendor or find one that does.



No comments:

Post a Comment