LX. Miscellaneous functions

Bevezetés

These functions were placed here because none of the other categories seemed to fit.

Követelmények

Az itt leírt függvények a standard modulban találhatóak, ami mindig rendelkezésre áll.

Telepítés

Semmilyen telepítés nem szükséges ezen függvények használatához, a PHP alapelemei.

Futásidejű beállítások

The behaviour of these functions is affected by settings in php.ini.

Táblázat 1. Misc. Configuration Options

NameDefaultChangeable
ignore_user_abort"0"PHP_INI_ALL
highlight.string#CC0000PHP_INI_ALL
highlight.comment#FF9900PHP_INI_ALL
highlight.keyword#006600PHP_INI_ALL
highlight.bg#FFFFFFPHP_INI_ALL
highlight.default#0000CCPHP_INI_ALL
highlight.html#000000PHP_INI_ALL
browscapNULLPHP_INI_SYSTEM
For further details and definition of the PHP_INI_* constants see ini_set().

Here is a short explanation of the configuration directives.

ignore_user_abort boolean

TRUE by default. If changed to FALSE scripts will be terminated as soon as they try to output something after a client has aborted their connection.

See also ignore_user_abort().

highlight.xxx string

Colors for Syntax Highlighting mode. Anything that's acceptable in <font color="??????"> would work.

browscap string

Name (e.g.: browscap.ini)and location of browser capabilities file. See also get_browser().

Erőforrás típusok

Ez a kiterjesztés semmilyen erőforrás típust nem definiál.

Előre definiált állandók

Az itt listázott állandókat ez a kiterjesztés definiálja, és csak akkor elérhetőek, ha az adott kiterjesztés be van fordítva a PHP-be, vagy dinamikusan betöltött.

CONNECTION_ABORTED (integer)

CONNECTION_NORMAL (integer)

CONNECTION_TIMEOUT (integer)

Tartalom
connection_aborted -- Returns TRUE if client disconnected
connection_status -- Returns connection status bitfield
connection_timeout -- Return TRUE if script timed out
constant -- Returns the value of a constant
define -- Defines a named constant.
defined --  Checks whether a given named constant exists
die -- Alias of exit()
eval -- Evaluate a string as PHP code
exit -- Output a message and terminate the current script
get_browser --  Tells what the user's browser is capable of
highlight_file -- Syntax highlighting of a file
highlight_string -- Syntax highlighting of a string
ignore_user_abort --  Set whether a client disconnect should abort script execution
pack -- Pack data into binary string.
show_source -- Alias of highlight_file()
sleep -- Delay execution
uniqid -- Generate a unique ID
unpack -- Unpack data from binary string
usleep -- Delay execution in microseconds