PHP in WAP, trying to allow access to page once only
Posted: Mon Feb 09, 2004 7:08 am
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
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