Okay... here's the process:
The page runs for 24 hours. All of that is already taken care of so no reason to discuss that here.
I just need to have the server visit the page URL one time after the $auction_end time of that page. This will trigger an email function which needs to run AFTER $auction_end.
I can't depend on a random user to visit the site for me to trigger the email function.
So, to make it automatic:
-When the page is loaded the first time, create a cron job programmatically using php exec() to visit the page at whatever time is assigned to $auction_end.
-After the visit takes place, delete the cron job.
Later, perhaps a week later, I may run the page again for 24 hours with different time criteria. Thus the need to make the cron creation/ deletion self contained within the page code.
In summary:
I just need to run the php exec() function, with the proper command between the (), to create the cron job to visit http://my URL at precisely $auction_end.
Then run another exec() to delete the cron job AFTER that has happened.
In both cases I'll put a piece of data in the db indicating they took place. I'll check that data on subsequent page visits by random visitors to prevent it from happening more than once.
Make sense?