LXXIII. Miscellaneous Functions

Úvod

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

Požiadavky

�iadne extern� kni�nice nie s� potrebn� na vybudovanie tohto roz��renia.

Inštalácia

Nie je potrebn� �iadna in�tal�cia na pou�itie t�chto funkci�; s� �as�ou jadra PHP.

Runtime Konfigurácia

Spr�vanie tejto funkcie je ovplyvnen� nastaveniami v php.ini.

Tabuľka 1. Misc. Configuration Options

NameDefaultChangeableChangelog
ignore_user_abort"0"PHP_INI_ALL 
highlight.string"#DD0000"PHP_INI_ALL 
highlight.comment"#FF8000"PHP_INI_ALL 
highlight.keyword"#007700"PHP_INI_ALL 
highlight.bg"#FFFFFF"PHP_INI_ALL 
highlight.default"#0000BB"PHP_INI_ALL 
highlight.html"#000000"PHP_INI_ALL 
browscapNULLPHP_INI_SYSTEM 
Pre �al�ie detaily a defin�cie PHP_INI_* kon�t�nt, si pozrite ini_set() dokument�ciu.

Tu je kr�tke vysvetlenie konfigura�n�ch direkt�v.

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.bg string, highlight.comment string, highlight.default string, highlight.html string, highlight.keyword string, highlight.string 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().

Typy zdrojov

Toto roz��renie nem� definovan� �iadne typy zdrojov.

Preddefinované Konštanty

Kon�tanty uveden� ni�ie s� definovan� t�mto roz��ren�m a bud� dostupn� iba ke� roz��renie bolo bu� kompilovan� do PHP alebo dynamicky na��tan� za behu (runtime).

CONNECTION_ABORTED (integer)

CONNECTION_NORMAL (integer)

CONNECTION_TIMEOUT (integer)

Obsah
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 -- Equivalent to 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
php_check_syntax --  Check the PHP syntax of (and execute) the specified file
php_strip_whitespace --  Return source with stripped comments and whitespace
show_source -- Alias of highlight_file()
sleep -- Delay execution
time_nanosleep --  Delay for a number of seconds and nanoseconds
uniqid -- Generate a unique ID
unpack -- Unpack data from binary string
usleep -- Delay execution in microseconds