|
-
Is is possible to add PHP to the <embed> 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:
<? php include("http://www.mysite.com/banners"); ?>
I have also used this in other ways such as:
<?php $file = file_get_contents("http://www.mysite/banners"); ?>
I am struggling to incorporate this into the <object> tag. Is there a way in which I can do this? Can I somehow get this to work in the <param name="movie"> 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,
Jp
-
It's a long way to the middle
When using a "php include" command, all your telling your php page to do is "include" a certain file within the page. So, you don't need to incorporate php into the embed tags. What you need to do is make your flash banner, then simply call it with the <?php include ("........ command.
Are you using an open source CMS application? Like Joomla or something? Just curious if this is why you need to know.
-
 Originally Posted by launchpad67
When using a "php include" command, all your telling your php page to do is "include" a certain file within the page. So, you don't need to incorporate php into the embed tags. What you need to do is make your flash banner, then simply call it with the <?php include ("........ command.
Are you using an open source CMS application? Like Joomla or something? Just curious if this is why you need to know.
Hi. I'm using Cubecart. The problem is that tpl file I am using doesn't support PHP, well I don't think it does. There is an index.php file which provides all the data / variables for the index.tpl file. Maybe I have to code the index.php and send the variables to the tpl file?
-
It's a long way to the middle
I'm not familiar with Cubecart so I can't speculate without seeing the files. You can zip the 2 files together and attach them to a post here. I can take a look.
-
 Originally Posted by launchpad67
I'm not familiar with Cubecart so I can't speculate without seeing the files. You can zip the 2 files together and attach them to a post here. I can take a look.
I've managed to solve this one, thanks for offering to help though
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|