Does anybody know how I can display a page if a certain variable (generated by my adserver) is in the URL, but only for a limited time. And without using a database or cookies?
For example, if my ad links to a page like mysite.com/page?UNIQUE_ID=1234567 it would display a certain page (1), but if the '1234567' is missing or malformed it displays a different page (2).
However, having ?1234567 appended to the URL would only display page (1) for a certain time limit before starting to display page (2) as the plain link (mysite.com/page) does.
I generate the unique ID when the ad is served, so by the time they land on my actual site it is already appended to the URL. Therefore, anybody landing on the site via the ad would see page (1), but if they copied the URL (including UNIQUE_ID=1234567) and came back a couple days later they would see page (2).
Once they land on the landing page I generate a time(); and send that back to my tracking script along with the unique ID... if that can help somehow?
I'd prefer a PHP solution, perhaps working with elseif and echo to display a certain page based on variable and time.
Is this possible without writing anything to a database???
If you know what I'm talking about, please do mention what kind of PHP statements I could use. Doesn't have to be PHP either, that's just what I'm used to.
Finally, I'm not necessarily asking you to teach me how to do it, I'm mostly asking if a) it's possible, and b) what's are some keywords I could use to learn more about how it's done.
Thanks for any help,
For example, if my ad links to a page like mysite.com/page?UNIQUE_ID=1234567 it would display a certain page (1), but if the '1234567' is missing or malformed it displays a different page (2).
However, having ?1234567 appended to the URL would only display page (1) for a certain time limit before starting to display page (2) as the plain link (mysite.com/page) does.
I generate the unique ID when the ad is served, so by the time they land on my actual site it is already appended to the URL. Therefore, anybody landing on the site via the ad would see page (1), but if they copied the URL (including UNIQUE_ID=1234567) and came back a couple days later they would see page (2).
Once they land on the landing page I generate a time(); and send that back to my tracking script along with the unique ID... if that can help somehow?
I'd prefer a PHP solution, perhaps working with elseif and echo to display a certain page based on variable and time.
Is this possible without writing anything to a database???
If you know what I'm talking about, please do mention what kind of PHP statements I could use. Doesn't have to be PHP either, that's just what I'm used to.
Finally, I'm not necessarily asking you to teach me how to do it, I'm mostly asking if a) it's possible, and b) what's are some keywords I could use to learn more about how it's done.
Thanks for any help,