2010-08-31, 11:23 PM
Pages: 1 2
2010-09-01, 12:29 AM
From what I understand, you need a random image generator - where .htaccess comes into play I have no idea.
2010-09-01, 01:00 AM
(2010-09-01, 12:29 AM)Scoutie44 Wrote: [ -> ]From what I understand, you need a random image generator - where .htaccess comes into play I have no idea.
It's just a way to rewrite .php to an image extension. This isn't that important except for maybe forums where dynamic .php images are disabled (and putting an image extension would circumvent that).
2010-09-02, 04:30 AM
Save them in say /images/banners/1.gif etc then in ad.php have
Actually, that's a cheap solution. I should find something to generate the number of banners in the folder.
<?php
echo "<img src=\"images/banners/".rand(1,NUMBER OF BANNERS).">";
?>
Actually, that's a cheap solution. I should find something to generate the number of banners in the folder.
2010-09-03, 07:27 AM
Lola my image generator is a little more complex than that but basic principle
Basically I've given people a link to /images/banners/devnet.gif
But I want that image to redirect to /images/banners/ad.php
Basically I've given people a link to /images/banners/devnet.gif
But I want that image to redirect to /images/banners/ad.php
Pages: 1 2