# Pause php script

**URL:** https://forum.kirupa.com/t/pause-php-script/258007
**Category:** Uncategorized
**Created:** [April 19, 2008, 3:29pm UTC](https://forum.kirupa.com/t/pause-php-script/258007 "2008-04-19T15:29:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gam99](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gam99](https://forum.kirupa.com/u/gam99)
#### Post date: [April 19, 2008, 3:29pm UTC](https://forum.kirupa.com/t/pause-php-script/258007/1 "2008-04-19T15:29:09Z")

</div>

Is it possible to pause a php script for a specific number of seconds and have it start again after that time.

What I am trying to do is retrieve a large number of results from a database and run a script for each result. Due to the large number of results, I would like to pause the script for say 30 seconds and then have it resume where it stopped.

Can this be done with php only?
