w3schools    w3Schools
Search W3Schools :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
PHP Basic
PHP HOME
PHP Intro
PHP Install
PHP Syntax
PHP Variables
PHP String
PHP Operators
PHP If...Else
PHP Switch
PHP Arrays
PHP Looping
PHP Functions
PHP Forms
PHP $_GET
PHP $_POST

PHP Advanced
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
MySQL Introduction
MySQL Connect
MySQL Create
MySQL Insert
MySQL Select
MySQL Where
MySQL Order By
MySQL Update
MySQL Delete
PHP ODBC

PHP XML
XML Expat Parser
XML DOM
XML SimpleXML

PHP and AJAX
AJAX Introduction
XMLHttpRequest
AJAX Suggest
AJAX XML
AJAX Database
AJAX responseXML
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 MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip

PHP Quiz
PHP Quiz
PHP Exam

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools

 

PHP Misc. Functions

previous next

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


previous next


The tools you need to build your web project!

Instant Demo

Ektron CMS400.NET Version 7.6 delivers all of the flexibility and features you need to deploy the Web site you want, quickly and efficiently.

learn more...

 

 

 

6 ways to take your site to the next level with Ektron:

Social Networking Create site stickiness through social networking. Keep it personal, relevant and interactive and they'll come back for more.
Open API Keep it open. Your site needs to be ready and able to connect to outside services. Ektron's open API gives you maximum flexibility.
Document Management Streamline content and document management. Users need to quickly and intuitively find and add information.
Content Authors Empower your content authors. Reduce IT bottlenecks by allowing business users to create and edit Web content and forms.
Taxonomy Climb to the top of search rankings. SEO tools, URL aliasing and eCommerce for your digital marketing strategy
Web 2.0 Tools Add powerful Web 2.0 tools like blogs, wikis, forums, geo-mapping, rating systems and RSS feeds easily.
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today.

 
WEB HOSTING
dotnetbutton
Dynamic button image generation
$15 Domain Name
Registration
Save $20 / year!
Buy UK Domain Names
Register Domain Names
Cheap Domain Names
Cheap Web Hosting
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Custom Programming
FREE Trial or Demo
Web Content Manager
Forms,Web Alerts,RSS
Download XML editor
FREE Flash Website
FREE Web Templates
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
Home HOME or Top of Page Validate   Validate   W3C-WAI level A conformance icon Printer Friendly  Printer Friendly

W3Schools is for training only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2009 by Refsnes Data. All Rights Reserved.