Re: [PHP4BETA] PHP ticks

From: Date: Wed, 26 Apr 2000 09:08:26 +0000
Subject: Re: [PHP4BETA] PHP ticks
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-14101@lists.php.net to get a copy of this message
Hiya This sounds great... but can you make it so that it will not triger after x php-script-staps but after a periot of time... i got some database query's that somethings take to long with a timer function i could kill the query after some (to much?) time and then the script will continue with an error of the query (status killed or something) (already asked this in a feature request but i think this is a much better description) Greetz, and futher tnx, Wico At 10:15 22-4-2000 -0500, Andrei Zmievski wrote:
On Fri, 21 Apr 2000, Jade Nicoletti wrote: While browsing the php4/zend source, I saw that ticks can be used like this: declare (ticks = 1) {
      function foo() {
              echo "bar\n";
      }
} foo(); But what are the uses of PHP ticks? The ticks can be used to emulate background processing. They are not functional right now, but when they are you will be able to register functions that get called after each statement in the script is executed. That's if ticks=1. If it's ticks=5, for example, then your function will be called after every 5th statement. -Andrei It is commonly the case with technologies that you can get the best insight about how they work by watching them fail.
                                        -- Neal Stephenson
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net


« previous php.version4 (#14101) next »