[ PHPXref.com ] [ Generated: Tue Apr 1 10:47:01 2008 ] [ WordPress 2.5 ]
[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> wp-settings.php (summary)

Used to setup and fix common variables and include the WordPress procedural and class library. You should not have to change this file and allows for some configuration in wp-config.php.

File Size: 471 lines (14 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  wp_unregister_GLOBALS()
  timer_start()
  timer_stop()
  shutdown_action_hook()

Functions
Functions that are not part of a class:

wp_unregister_GLOBALS()   X-Ref
wp_unregister_GLOBALS() - Turn register globals off

return: null Will return null if register_globals PHP directive was disabled

timer_start()   X-Ref
timer_start() - PHP 4 standard microtime start capture

return: bool Always returns true

timer_stop($display = 0, $precision = 3)   X-Ref
timer_stop() - Return and/or display the time from the page start to when function is called.

You can get the results and print them by doing:
<code>
$nTimePageTookToExecute = timer_stop();
echo $nTimePageTookToExecute;
</code>

Or instead, you can do:
<code>
timer_stop(1);
</code>
which will do what the above does. If you need the result, you can assign it to a variable, but
most cases, you only need to echo it.

param: int $display Use '0' or null to not echo anything and 1 to echo the total time
param: int $precision The amount of digits from the right of the decimal to display. Default is 3.
return: float The "second.microsecond" finished time calculation

shutdown_action_hook()   X-Ref
shutdown_action_hook() - Runs just before PHP shuts down execution.




[ Powered by PHPXref - Served by Debian GNU/Linux ]