<HTML ><HEAD ><TITLE >Miscellaneous functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="SWFTextField" HREF="function.swftextfield.html"><LINK REL="NEXT" TITLE="connection_aborted" HREF="function.connection-aborted.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.swftextfield.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.connection-aborted.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.misc" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LX. Miscellaneous functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN55220" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.intro" ></A >Introduction</H1 ><P > These functions were placed here because none of the other categories seemed to fit. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.requirements" ></A >Requirements</H1 ><P >No external libraries are needed to build this extension.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.installation" ></A >Installation</H1 ><P >There is no installation needed to use these functions; they are part of the PHP core.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.configuration" ></A >Runtime Configuration</H1 ><P > The behaviour of these functions is affected by settings in <TT CLASS="filename" >php.ini</TT >. </P ><P > <DIV CLASS="table" ><A NAME="AEN55235" ></A ><P ><B >Table 1. Misc. Configuration Options</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><THEAD ><TR ><TH ALIGN="LEFT" VALIGN="MIDDLE" >Name</TH ><TH ALIGN="LEFT" VALIGN="MIDDLE" >Default</TH ><TH ALIGN="LEFT" VALIGN="MIDDLE" >Changeable</TH ></TR ></THEAD ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >ignore_user_abort</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >"0"</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.string</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#CC0000</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.comment</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#FF9900</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.keyword</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#006600</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.bg</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#FFFFFF</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.default</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#0000CC</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >highlight.html</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >#000000</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_ALL</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >browscap</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >NULL</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >PHP_INI_SYSTEM</TD ></TR ></TBODY ></TABLE ></DIV > For further details and definition of the PHP_INI_* constants see <A HREF="function.ini-set.html" ><B CLASS="function" >ini_set()</B ></A >. </P ><P > Here is a short explanation of the configuration directives. <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><A NAME="ini.ignore-user-abort" ></A ><TT CLASS="parameter" ><I >ignore_user_abort</I ></TT > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > <TT CLASS="constant" ><B >TRUE</B ></TT > by default. If changed to <TT CLASS="constant" ><B >FALSE</B ></TT > scripts will be terminated as soon as they try to output something after a client has aborted their connection. </P ><P > See also <A HREF="function.ignore-user-abort.html" ><B CLASS="function" >ignore_user_abort()</B ></A >. </P ></DD ><DT ><A NAME="ini.syntax-highlighting" ></A ><TT CLASS="parameter" ><I >highlight.xxx</I ></TT > <A HREF="language.types.string.html" ><B CLASS="type" >string</B ></A ></DT ><DD ><P > Colors for Syntax Highlighting mode. Anything that's acceptable in <font color="??????"> would work. </P ></DD ><DT ><A NAME="ini.browscap" ></A ><TT CLASS="parameter" ><I >browscap</I ></TT > <A HREF="language.types.string.html" ><B CLASS="type" >string</B ></A ></DT ><DD ><P > Name (e.g.: <TT CLASS="filename" >browscap.ini</TT >)and location of browser capabilities file. See also <A HREF="function.get-browser.html" ><B CLASS="function" >get_browser()</B ></A >. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.resources" ></A >Resource Types</H1 ><P >This extension has no resource types defined.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="misc.constants" ></A >Predefined Constants</H1 ><P >This extension has no constants defined.</P ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.connection-aborted.html" >connection_aborted</A > -- Returns <TT CLASS="constant" ><B >TRUE</B ></TT > if client disconnected</DT ><DT ><A HREF="function.connection-status.html" >connection_status</A > -- Returns connection status bitfield</DT ><DT ><A HREF="function.connection-timeout.html" >connection_timeout</A > -- Return <TT CLASS="constant" ><B >TRUE</B ></TT > if script timed out</DT ><DT ><A HREF="function.constant.html" >constant</A > -- Returns the value of a constant</DT ><DT ><A HREF="function.define.html" >define</A > -- Defines a named constant.</DT ><DT ><A HREF="function.defined.html" >defined</A > -- Checks whether a given named constant exists </DT ><DT ><A HREF="function.die.html" >die</A > -- Alias of <A HREF="function.exit.html" ><B CLASS="function" >exit()</B ></A ></DT ><DT ><A HREF="function.eval.html" >eval</A > -- Evaluate a string as PHP code</DT ><DT ><A HREF="function.exit.html" >exit</A > -- Output a message and terminate the current script</DT ><DT ><A HREF="function.get-browser.html" >get_browser</A > -- Tells what the user's browser is capable of </DT ><DT ><A HREF="function.highlight-file.html" >highlight_file</A > -- Syntax highlighting of a file</DT ><DT ><A HREF="function.highlight-string.html" >highlight_string</A > -- Syntax highlighting of a string</DT ><DT ><A HREF="function.ignore-user-abort.html" >ignore_user_abort</A > -- Set whether a client disconnect should abort script execution </DT ><DT ><A HREF="function.pack.html" >pack</A > -- Pack data into binary string.</DT ><DT ><A HREF="function.show-source.html" >show_source</A > -- Syntax highlighting of a file</DT ><DT ><A HREF="function.sleep.html" >sleep</A > -- Delay execution</DT ><DT ><A HREF="function.uniqid.html" >uniqid</A > -- Generate a unique ID</DT ><DT ><A HREF="function.unpack.html" >unpack</A > -- Unpack data from binary string</DT ><DT ><A HREF="function.usleep.html" >usleep</A > -- Delay execution in microseconds</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.swftextfield.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.connection-aborted.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >SWFTextField</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >connection_aborted</TD ></TR ></TABLE ></DIV ></BODY ></HTML >