Is there a way in PHP to call a function within a script and then continue through the rest of the script without waiting for that function to finish?
For example, if I have a script like this:
<?php
... some code ...
getImage($value);
... some code ...
?>
getImage()
is a function that takes, on average, 5 seconds to complete. Is there a way to call getImage()
and continue through the rest of the script without having to wait for a response so that the user doesn't have to wait as long?
Thanks.