downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<register_shutdown_functionunregister_tick_function>
Last updated: Thu, 26 Jun 2008

register_tick_function

(PHP 4 >= 4.0.3, PHP 5)

register_tick_function — Register a function for execution on each tick

Description

bool register_tick_function ( callback $function [, mixed $arg [, mixed $... ]] )

Registers the given function to be executed when a tick is called.

Parameters

function

The function name as a string, or an array consisting of an object and a method.

arg

...

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 register_tick_function() example

<?php
// using a function as the callback
register_tick_function('my_function', true);

// using an object->method
$object = new my_class();
register_tick_function(array(&$object, 'my_method'), true);
?>

Notes

Warning

register_tick_function() should not be used with threaded web server modules. Ticks are not working in ZTS mode and may crash your web server.



add a noteadd a note User Contributed Notes
Register a function for execution on each tick
There are no user contributed notes for this page.




<register_shutdown_functionunregister_tick_function>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs