Hey guys, I would like to know if you guys can help me make a simple PHP script that will:
1-Have a button, and when you press that button it will produce a time stamp and display it on the screen.
2-Save that timestamp to a file (e.g. timestamp.txt).
3-Next time the page is loaded, the timestamp from the file will be displayed.
p.s. If you can, have it so that if 2 hours haven't passed yet, they get some time of alert letting them know to wait 2 hours before pressing the button again.
Thanks.
1-Have a button, and when you press that button it will produce a time stamp and display it on the screen.
2-Save that timestamp to a file (e.g. timestamp.txt).
3-Next time the page is loaded, the timestamp from the file will be displayed.
p.s. If you can, have it so that if 2 hours haven't passed yet, they get some time of alert letting them know to wait 2 hours before pressing the button again.
Thanks.