News   May 03, 2024
 279     0 
News   May 03, 2024
 382     0 
News   May 03, 2024
 813     0 

Pic of the day error

gei

Active Member
Member Bio
Joined
Apr 24, 2007
Messages
821
Reaction score
13
The address to the pic of the day image is:

http://www.urbantoronto.ca/picoftheday/picoftheday.jpg?<? echo rand(1,3000); ?>

I'm guessing the random number is there to make sure that browsers don't show a cached image instead of the current pic of the day.

Only problem is that you must have some escaping problem or something because the image link is literally to that piece of code, instead of a randomly generated number.

And of course, this is causing some browsers (ie my one at work) to show a previously cached image instead of the new one.
 

Back
Top