Is there a way to run a PHP FUNCTION \"fun();\" only once when a logged in user accesses a page multiple times?
here is the function.
Using authentication/sessions and storing the number of times a user has accessed that page in say a database for example or a flat file. You'll need to persist their access count to that page regardless.