How to use php to implement this construction: 2 files: do.php, ok.php The do file contains the code that is executed, say 500 seconds, while I have to open the ok.php file that runs the script in do.php and after that gives an instant answer. This is necessary in order to not wait for 500 seconds for each request, but much less, preferably less than 1 second.
- I hope that 500 seconds. for the script taken from the ceiling? )) If do.php prepares, generates, etc. data, this data would not be bad to cache. The way of caching depends on the situation: it can be a file, memcached, and Local Storage on the client side, etc. For example, if this is a database search, then [Sphinx] [1] will do it for you. [1]: sphinxsearch.com - Deonis
|