Fero Fero - 1 year ago 68
PHP Question

how to call a function in PHP after 10 seconds of the page load (Not using HTML)

Is there any way to call a function 10 seconds after the page load in PHP. (Not using HTML.)

Answer Source

This code works. Edited from randell's answer.

<script type="text/javascript" src="jquery.js"></script>          
<script type="text/javascript">

    setTimeout(function()    {   $('#some_id').load('index.php');    }, 10000);

Thanks to randell