No random number from PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bill-SWJ
    Member
    • Sep 2005
    • 67
    • 3.0.9

    No random number from PHP?

    I'm trying to insert a random number in some ad cachebusting code in my vBulletin 3.8.5 forums. I found this thread that presents a solution I can live with.

    No idea why <?php echo rand(); ?> didn't work, as in:

    <a href="http://www.example.com/ck.php?n=3798N2&cb=<?php echo rand(); ?>"><img src="http://www.example.com/avw.php?zoneid=10&n=3798N2&cb=<?php echo rand(); ?>"></a>

    I only a know a few paint by numbers things, but I thought that was OK. Is there something that prevents PHP from running inside of the templates?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...