Hello Experts,
I am new to phpfreaks and excited about following it :-)
Well I have an issue with sleep function. Whenever I use the sleep function it halts the page (which is supposed to be).
But the problem is that it halts the page other than where the sleep is written.
For example I have 2 Pages
Page a.php
----------
<?php
// Some Code
sleep(10)
// Some Code
?>
and Page b.php
---------------
<?php
// redirect code
header("Location: a.php");
?>
When I run a.php through browser it halts (sounds like keep loading) for 10 seconds. (Which is acceptable for me).
But When run b.php why does it halt for 10 seconds, and then go to a.php (without halt).
What I want is
Load b.php, Redirect quickly to a.php where it can halt for 10 seconds (I dont' care)
Please Help it is very important
Looking forward to having quick and affective responses.
Regards
Gohar