|
Galleriescript with cookies, is that possible?
Hi,
Question(sorry but can't find it)
Is this possible. WHat I want is
I add like 100 galleires in a txtfile. And a simpel php script gets one out to display. I have that already.
But what I want now is that is picks the first url in the txtfile, after that a surfer gets the second then nr3 etc.
Is this possible by cookies? If so what do I need to add in the php script. I have now this that randomly takes one.
[code ]] doesn't seems to work here it is
< ?
$f = file('amateur.txt');
srand((double)microtime()*1000000);
$num = rand(0,count($f)-1);
$url = $f[$num];
header("Location: $url");
? >
Thnx
Andre
__________________
Questions?
ICQ: 125184542
|