Webmaster
| |
| bcscale(scale) | |
| Sets the default scale parameter for all arbitrary precision mathematics functions that do not explicitly receive a scale parameter when called up. The number passed as the argument defines the number of digits after the decimal point. | |
| Example | <? bcscale(5); ?> |
| clearstatcache() | |
| PHP keeps in its cache the results of a call to the stat function, so that a subsequent call to this function will use the data in cache to avoid another expensive run. However, if you make use of a frequently updated file, this behaviour could be a source of errors. To force a rerun of stat, call up clearstatcache to first delete the old results in cache. | |
| Example | <? clearstatcache(); ?> |
| magic_quotes_runtime(on/off) | |
| Defines the setting of the magic_quotes_runtime configuration parameter. When this parameter is activated, most of the functions returning external data will have their quotes escaped with a backslash. | |
| Example | <? magic_quotes_runtime(on); ?> |
| register_shutdown_function (function) | |
| Registers the function passed as the argument to be executed after complete processing of the script. | |
| Example | <? function shutdown() { print("<!--End of script -->\n"); } register_shutdown_function("shutdown"); ?> |
| setlocale(category, locale) | |
| Sets the local information used by your PHP scripts. The category argument defines the functions affected by the locale setting. Here are the category codes available: | |
| Category | Description |
| LC_ALL | Affects all the function categories listed below. |
| LC_COLLATE | Affects the string comparisons. |
| LC_CTYPE | Affects the character conversion and classification operations. |
| LC_MONETARY | Affects the currency formatting information. |
| LC_NUMERIC | Affects the decimal separator. |
| LC_TIME | Affects the time and date formatting information. |
| You can also use zero to obtain all the current parameters. If no value is specified for the category argument, the corresponding values will be set using the environment variables. | |
| Example : | <? print("German: "); print(setlocale(LC_TIME, "de")); ?> |
| sleep(seconds) | |
| Delays the script execution for the number of seconds passed as the argument. | |
| Example | <? sleep(5); ?> |
| usleep(microseconds) | |
| Delays the script execution for the number of microseconds passed as the argument. | |
| Example | <? usleep(80); ?> |
| |