Scheduling without cron job PHP


Can I be able to write a scheduler without cron in PHP?



I don’t know a lot about that, but about putting some code in a file that it is included at the top of all pages of the site, that code should check the time with the needed job, for example if you want to edit a content of a file at 10:00, that code should check the time with every request if it is >= 10:00: edit the content of the file!

That way the file content may be edited at the time or after it, but nobody can feel that as the first request in a time >= the needed time will make the needed job!