PDA

View Full Version : Banner rotation. One line code.


wooolF[RM]
03-16-2002, 05:36 PM
]Hi.
I just got a new hoster and I must place this line into my forumhome template in vBB.


<? passthru("/usr/httpd/htdocs/bin/showbanner"); ?>


that's all I got...

Well, I just inserted that code like this

<td>
Banner should be under this text<br>
<? passthru("/usr/httpd/htdocs/bin/showbanner"); ?>
</td>


nothing happens... all I see is text and nothing more...
any ideas please?

wooolF[RM]
03-16-2002, 05:50 PM
by the way... code working just fine when I insert it into plain php file...

Admin
03-16-2002, 06:09 PM
Place this in the phpinclude template then use $banner in your templates:
ob_start();
passthru('/usr/httpd/htdocs/bin/showbanner');
$banner = ob_get_contents();
ob_end_clean();

wooolF[RM]
03-16-2002, 07:02 PM
]Like I said once...

Who's your daddy? :D

Thanx a lot :)