Re: error/warning messages
| From: | Joe Stump | Date: | Thu, 14 Dec 2000 10:45:51 +0000 |
| Subject: | Re: error/warning messages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30280@lists.php.net to get a copy of this message | ||
This is what I would do:
<?
$now = time();
$my_limit = $now + 30; // 30 seconds ...
set_time_limit(0); // will run forever - or until exit;
while(time() < $my_limit)
{
// do stuff
// exit if everything is done!
}
echo "UH OH! It took you a whopping ".$my_limit." seconds to do whatever
you were doing!";
?>
--Joe
On Thu, Dec 14, 2000 at 11:40:31PM +1300, Greg wrote:
> does anybody know how to change error/warning message?
> in my case it's timeout error message. after set amount of time the script
> is terminated and standard debug message is sent to the browser. I'd like to
> change it so it's more user friendly and informative..
> I'm running PHP 4.03pl, Apache on sparc Solaris 2.6
>
> I will appreciate every idea
> greg.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
Joe Stump
PHP Programmer
www.Care2.com