RE: [PHP] Time Delay using phpscript
| From: | John Holmes | Date: | Mon, 24 Jun 2002 03:15:39 +0000 |
| Subject: | RE: [PHP] Time Delay using phpscript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103524@lists.php.net to get a copy of this message | ||
> I need to display some strings one by one after some specific time..In
> javascript we can use setTimeout() function.Is there any function like
> this in phpscript ???..
No, not really. PHP just evaluates the script and sends the output to
the browser. It has no control over the display at all.
Best you could do is output some JavaScript along with your HTML and
attempt to control it that way. Basically, since you already know how to
do it with JavaScript, have PHP write the JavaScript for you...
---John Holmes...