PHP Misc. Functions

## PHP Basic

PHP HOME PHP Intro PHP Install PHP Syntax PHP Variables PHP Echo / Print PHP Data Types PHP String Functions PHP Constants PHP Operators PHP If...Else...Elseif PHP Switch PHP While Loops PHP For Loops PHP Functions PHP Arrays PHP Sorting Arrays PHP Superglobals

## PHP Forms

PHP Form Handling PHP Form Validation PHP Form Required PHP Form URL/E-mail PHP Form Complete

## PHP Advanced

PHP Arrays Multi PHP Date PHP Include PHP File PHP File Upload PHP Cookies PHP Sessions PHP E-mail PHP Secure E-mail PHP Error PHP Exception PHP Filter

## PHP Database

PHP MySQL Intro PHP MySQL Connect PHP CREATE DB/Table PHP INSERT INTO PHP SELECT PHP WHERE PHP ORDER BY PHP UPDATE PHP DELETE PHP ODBC

## PHP XML

XML Expat Parser XML DOM XML SimpleXML

## PHP and AJAX

AJAX Intro AJAX PHP AJAX Database AJAX XML AJAX Live Search AJAX RSS Reader AJAX Poll

## PHP Reference

PHP Array PHP Calendar PHP Date PHP Directory PHP Error PHP Filesystem PHP Filter PHP FTP PHP HTTP PHP Libxml PHP Mail PHP Math PHP Misc PHP MySQLi PHP SimpleXML PHP String PHP XML PHP Zip PHP Timezones

## PHP Quiz

PHP Quiz PHP Certificate

# PHP 5 Misc. Functions

« Previous
Next Chapter »

## 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. No installation is required 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 | Description | Default | Changeable
--- | --- | --- | ---
ignore_user_abort | FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection | "0" | PHP_INI_ALL
highlight.string | Color for highlighting a string in PHP syntax | "#DD0000" | PHP_INI_ALL
highlight.comment | Color for highlighting PHP comments | "#FF8000" | PHP_INI_ALL
highlight.keyword | Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon) | "#007700" | PHP_INI_ALL
highlight.bg | Removed in PHP 5.4.0. Color for background | "#FFFFFF" | PHP_INI_ALL
highlight.default | Default color for PHP syntax | "#0000BB" | PHP_INI_ALL
highlight.html | Color for HTML code | "#000000" | PHP_INI_ALL
browscap | Name and location of browser-capabilities file (e.g. browscap.ini) | NULL | PHP_INI_SYSTEM

## PHP Miscellaneous Functions

Function | Description
--- | ---
connection_aborted() | Checks whether the client has disconnected
connection_status() | Returns the current connection status
connection_timeout() | Deprecated in PHP 4.0.5. Checks whether the script has timed out
constant() | Returns the value of a constant
define() | Defines a constant
defined() | Checks whether a constant exists
die() | Prints a message and exits the current script
eval() | Evaluates a string as PHP code
exit() | Prints a message and exits the current script
get_browser() | Returns the capabilities of the user's browser
__halt_compiler() | Halts the compiler execution
highlight_file() | Outputs a file with the PHP syntax highlighted
highlight_string() | Outputs a string with the PHP syntax highlighted
ignore_user_abort() | Sets whether a remote client can abort the running of a script
pack() | Packs data into a binary string
php_check_syntax() | Deprecated in PHP 5.0.5
php_strip_whitespace() | Returns the source code of a file with PHP comments and whitespace removed
show_source() | Alias of highlight_file()
sleep() | Delays code execution for a number of seconds
sys_getloadavg() | Gets system load average
time_nanosleep() | Delays code execution for a number of seconds and nanoseconds
time_sleep_until() | Delays code execution until a specified time
uniqid() | Generates a unique ID
unpack() | Unpacks data from a binary string
usleep() | Delays code execution for a number of microseconds

## 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

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE