View Single Post
Old 07-05-2002, 01:25 AM  
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
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

Last edited by justsexxx; 07-05-2002 at 01:28 AM..
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote