I need to update certain variables some time after the page has loaded. How can I do this?
Currently I have this:
sleep(1);
$introMailName1 = prepmail($sObj->username);
$cloudnameMail = prepmail($sObj->cloud->name_en);
$dateSubmissionMail = date('Y-m-d H:i:s', $sObj->upload_date);
I want to delay this part, where it updates the variables. But everything that comes after this also gets delayed. I need to isolate the part where the variables get updated after the page loads.
Ps. I've tried to search for this question, but couldn't find it.
Thank you!