![]() |
randomizing images
it seems that my code will randomize if i run the the script through the browser but it doesnt randomize if i put it in an image page
HTML Code:
<img src="$vboptions[bburl]/banners.php" /> the code is: PHP Code:
|
PHP Code:
|
that didnt work...
|
Why not do this :
in your code : PHP Code:
Then use an include in your main page you want to show the banner in : PHP Code:
PHP Code:
|
That's the wrong way to do it. You need to read the file data, set some header information and then echo it out. Look at attachment.php for an example.
|
if you had
HTML Code:
<img src="$vboptions[bburl]/banners.php" /> HTML Code:
$dir = "http://dev.animationation.net/images/banners/"; and if you use it in vb3 why don't we use a template ? and (yes, and T_T) why not mt_rand ? |
it outputs the image but it doesnt change the image unless i visit the script directly.
my current code is: PHP Code:
|
All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|