0

PHP Misc. Functions

Posted by jujur on 5:50 AM

PHP Misc. Functions


PHP Miscellaneous Introduction

The misc. functions were only placed here because none of the other categories seemed to fit.

Installation

The misc functions are part of the PHP core. There is no installation needed to use these functions.

Runtime Configuration

The behavior of the misc functions is affected by settings in the php.ini file.
Misc. configuration options:
Name
Default
Description
Changeable
ignore_user_abort
"0"
FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection
PHP_INI_ALL
highlight.string
"#DD0000"
Color for highlighting a string in PHP syntax
PHP_INI_ALL
highlight.comment
"#FF8000"
Color for highlighting PHP comments
PHP_INI_ALL
highlight.keyword
"#007700"
Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon)
PHP_INI_ALL
highlight.bg
"#FFFFFF"
Color for background
PHP_INI_ALL
highlight.default
"#0000BB"
Default color for PHP syntax
PHP_INI_ALL
highlight.html
"#000000"
Color for HTML code
PHP_INI_ALL
browscap
NULL
Name and location of browser-capabilities file (e.g. browscap.ini)
PHP_INI_SYSTEM


PHP Misc. Functions

PHP: indicates the earliest version of PHP that supports the function.
Function
Description
PHP
Checks whether the client has disconnected
3
Returns the current connection status
3
connection_timeout()
Deprecated in PHP 4.0.5
3
Returns the value of a constant
4
Defines a constant
3
Checks whether a constant exists
3
Prints a message and exits the current script
3
Evaluates a string as PHP code
3
Prints a message and exits the current script
3
Returns the capabilities of the user's browser
3
Outputs a file with the PHP syntax highlighted
4
Outputs a string with the PHP syntax highlighted
4
Sets whether a remote client can abort the running of a script
3
Packs data into a binary string
3
php_check_syntax()
Deprecated in PHP 5.0.5
5
Returns the source code of a file with PHP comments and whitespace removed
5
Alias of highlight_file()
4
Delays code execution for a number of seconds
3
Delays code execution for a number of seconds and nanoseconds
5
Delays code execution until a specified time
5
Generates a unique ID
3
Unpacks data from a binary string
3
Delays code execution for a number of microseconds
3


PHP Misc. Constants

PHP: indicates the earliest version of PHP that supports the constant.
Constant
Description
PHP
CONNECTION_ABORTED


CONNECTION_NORMAL


CONNECTION_TIMEOUT


__COMPILER_HALT_OFFSET__

5




0 Comments

Copyright Jujur Soaloon Sitangang Lipan All rights reserved. Theme by Sitanggang. | Bloggerized by Soalparna.