Rule 2: You must not be able to see if it's TTDP or OTTD.
Rule 3: It has to show atleast 2 new features that both games have. (Canals, build on slopes. etc...)
I think these are quite good rules.

Moderator: General Forums Moderators
Code: Select all
<?php
$images = array('image1.jpg', 'image2.jpg', 'image3.jpg');
echo '<img src="images/' . $images[rand(0,count($images)-1)] . "\" style=\"your-style: here;\" />\n";
?>
Or we could make it more complicated by making a php script act like an imagejonty-comp wrote:Random php image thing ftw!Code: Select all
<?php $images = array('image1.jpg', 'image2.jpg', 'image3.jpg'); echo '<img src="images/' . $images[rand(0,count($images)-1)] . "\" style=\"your-style: here;\" />\n"; ?>
He doesn't use itPurno wrote:How come I never saw the easter theme, while I have been here for like 3 years?
SpComb wrote:Caching is a nice thing...XeryusTC wrote:Or we could make it more complicated by making a php script act like an imagejonty-comp wrote:<snip>
Random php image thing ftw!.
Code: Select all
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
//image out printing here thingy//
?>
Massive bandwidth wasteage. With each image as it's own URL, you can cache each image seperately for, perhaps, many days or so. This is an irrelevant discussion though.Daan Timmer wrote:Code: Select all
<?php header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); //image out printing here thingy// ?>
Not needed, eh? Let's see how many page views there are a month, hmm... according to awstats, 1,277,585 "pages" were loaded (I'm assuming this is just meaning PHP files). Now, the logo is presently 8KB. Let's say that the logos on average would be 10KB. That's an extra 12GB of bandwidth in just the logo, whereas if it was only loaded once per session, it'd save a lot more.Captain Kirk wrote:But not needed.
I glady give up caching for a random image on load.
Users browsing this forum: No registered users and 7 guests