Page 1 of 1

PHP in WAP, trying to allow access to page once only

Posted: Mon Feb 09, 2004 7:08 am
by koocha
Hi

I'm writing a wap page in php which I want to be accessed once and once only. I see it in my head like this:

Card 1 - checking to see if it's been accessed already, if not onto:
Card 2 - the download link.
but if it had been accessed already:
Card 3 - "sorry, this page has already been accessed"

I thought using php I could create an external file that card 1 checks for, which is created by card 2 when visited. Is this possible?

I've also had a look at the timestamp thing, could this be used? Like, when the file is accessed it is stamped with a time, and unless the server time matches the stamped time it won't load?

I'm open to any ideas you have, and also if you know how to do them, because in the php scale of knowledge, I'm a beginner.

Thanks all.

Tim

Posted: Mon Feb 09, 2004 10:14 am
by koocha
could it be done via mysql?

a database with a value of 1
card 1 checks to see if this number is 1 or 0
if 1, onto card 2 to download, where card 2 subtracts 1 from the value to make it 0
so if they look again the value is 0 and it redirects you to card 3

?

will that work?