Debian Codegraph @

examples/goproxy-jquery-version/php_man.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head profile="http://purl.org/NET/erdf/profile">
5 <title>PHP: PHP Manual - Manual</title>
6 <style type="text/css" media="all">
7 @import url("http://static.php.net/www.php.net/styles/site.css");
8 @import url("http://static.php.net/www.php.net/styles/phpnet.css");
9
10 </style>
11 <!--[if IE]><![if gte IE 6]><![endif]-->
12 <style type="text/css" media="print">
13 @import url("http://static.php.net/www.php.net/styles/print.css");
14 </style>
15 <!--[if IE]><![endif]><![endif]-->
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
17 <link rel="shortcut icon" href="http://static.php.net/www.php.net/favicon.ico" />
18 <link rel="contents" href="index.php" />
19 <link rel="index" href="" />
20 <link rel="prev" href="" />
21 <link rel="next" href="" />
22 <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
23 <link rel="schema.rdfs" href="http://www.w3.org/2000/01/rdf-schema#" />
24 <link rev="canonical" rel="self alternate shorter shorturl shortlink" href="http://php.net/index" />
25 <link rel="license" href="http://creativecommons.org/licenses/by/3.0/" about="#content" />
26 <link rel="alternate" href="/manual/en/feeds/index.atom" type="application/atom+xml" />
27 <link rel="canonical" href="http://php.net/manual/en/index.php" />
28 <script type="text/javascript" src="http://static.php.net/www.php.net/userprefs.js"></script>
29 <base href="http://www.php.net/manual/en/index.php" />
30 <meta http-equiv="Content-language" content="en" />
31 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
32 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
33 <script type="text/javascript">
34 $(document).ready(function() {
35 var toggleImage = function(elem) {
36 if ($(elem).hasClass("shown")) {
37 $(elem).removeClass("shown").addClass("hidden");
38 $("img", elem).attr("src", "/images/notes-add.gif");
39 }
40 else {
41 $(elem).removeClass("hidden").addClass("shown");
42 $("img", elem).attr("src", "/images/notes-reject.gif");
43 }
44 };
45
46 $(".refsect1 h3.title").each(function() {
47 url = "https://bugs.php.net/report.php?bug_type=Documentation+problem&amp;manpage=" + $(this).parent().parent().attr("id") + "%23" + $(this).parent().attr("id");
48 $(this).parent().prepend("<div class='reportbug'><a href='" + url + "'>Report a bug</a></div>");
49 $(this).prepend("<a class='toggler shown' href='#'><img src='/images/notes-reject.gif' alt='reject note' /></a> ");
50 });
51 $("#usernotes .head").each(function() {
52 $(this).prepend("<a class='toggler shown' href='#'><img src='/images/notes-reject.gif' alt='reject note' /></a> ");
53 });
54 $(".refsect1 h3.title .toggler").click(function() {
55 $(this).parent().siblings().slideToggle("slow");
56 toggleImage(this);
57 return false;
58 });
59 $("#usernotes .head .toggler").click(function() {
60 $(this).parent().next().slideToggle("slow");
61 toggleImage(this);
62 return false;
63 });
64 });
65 </script>
66
67 </head>
68 <body>
69
70 <div id="headnav">
71 <a href="/" rel="home"><img src="http://static.php.net/www.php.net/images/php.gif"
72 alt="PHP" width="120" height="67" id="phplogo" /></a>
73 <div id="headmenu">
74 <a href="/downloads.php">downloads</a> |
75 <a href="/docs.php">documentation</a> |
76 <a href="/FAQ.php">faq</a> |
77 <a href="/support.php">getting help</a> |
78 <a href="/mailing-lists.php">mailing lists</a> |
79 <a href="/license">licenses</a> |
80 <a href="https://wiki.php.net/">wiki</a> |
81 <a href="https://bugs.php.net/">reporting bugs</a> |
82 <a href="/sites.php">php.net sites</a> |
83 <a href="/links.php">links</a> |
84 <a href="/conferences/">conferences</a> |
85 <a href="/my.php">my php.net</a>
86 </div>
87 </div>
88
89 <div id="headsearch">
90 <form method="post" action="/search.php" id="topsearch">
91 <p>
92 <span title="Keyboard shortcut: Alt+S (Win), Ctrl+S (Apple)">
93 <span class="shortkey">s</span>earch for
94 </span>
95 <input type="text" name="pattern" value="" size="30" accesskey="s" />
96 <span>in the</span>
97 <select name="show">
98 <option value="all" >all php.net sites</option>
99 <option value="local" >this mirror only</option>
100 <option value="quickref" selected="selected">function list</option>
101 <option value="manual" >online documentation</option>
102 <option value="bugdb" >bug database</option>
103 <option value="news_archive">Site News Archive</option>
104 <option value="changelogs">All Changelogs</option>
105 <option value="pear" >just pear.php.net</option>
106 <option value="pecl" >just pecl.php.net</option>
107 <option value="talks" >just talks.php.net</option>
108 <option value="maillist" >general mailing list</option>
109 <option value="devlist" >developer mailing list</option>
110 <option value="phpdoc" >documentation mailing list</option>
111 </select>
112 <input type="image"
113 src="http://static.php.net/www.php.net/images/small_submit_white.gif"
114 class="submit" alt="search" />
115 <input type="hidden" name="lang" value="en" />
116 </p>
117 </form>
118 </div>
119
120 <div id="layout_2">
121 <div id="leftbar">
122 <!--UdmComment-->
123 <ul class="toc">
124 <li class="header home"><a href="index.php">PHP Manual</a></li>
125 </ul><!--/UdmComment-->
126
127 </div>
128 <div id="content" class="manual/en">
129 <!--UdmComment-->
130 <div class="manualnavbar manualnavbar_top">
131 <span class="next">
132 </span>
133 <span class="prev">
134 &nbsp;
135 </span>
136 <hr />
137 <span class="lastupdated">[<a href="https://edit.php.net/?project=PHP&amp;perm=en/index.php">edit</a>] Last updated: Fri, 23 Mar 2012</span>
138 <div class="langchooser">
139 <form action="/manual/change.php" method="get">
140 <p>view this page in </p><fieldset><select name="page">
141 <option value="pt_BR/index.php">Brazilian Portuguese</option>
142 <option value="zh/index.php">Chinese (Simplified)</option>
143 <option value="fr/index.php">French</option>
144 <option value="de/index.php">German</option>
145 <option value="ja/index.php">Japanese</option>
146 <option value="pl/index.php">Polish</option>
147 <option value="ro/index.php">Romanian</option>
148 <option value="ru/index.php">Russian</option>
149 <option value="fa/index.php">Persian</option>
150 <option value="es/index.php">Spanish</option>
151 <option value="tr/index.php">Turkish</option>
152 <option value="help-translate.php">Other</option>
153 </select>
154 <input type="image" src="http://static.php.net/www.php.net/images/small_submit.gif" id="changeLangImage" alt="Change language" />
155 </fieldset></form>
156 </div>
157 </div>
158 <!--/UdmComment-->
159
160 <div id="index" class="set">
161 <h1 class="title">PHP Manual</h1>
162
163
164
165 <div class="info">
166 <div class="authorgroup" id="authors">
167
168 <div class="author vcard"><strong class="by">by</strong>:<br />
169 <span class="personname fn">
170 <span class="firstname given-name">Mehdi</span> <span class="surname family-name">Achour</span>
171 </span>
172 </div>
173
174
175 <div class="author vcard">
176 <span class="personname fn">
177 <span class="firstname given-name">Friedhelm</span> <span class="surname family-name">Betz</span>
178 </span>
179 </div>
180
181
182 <div class="author vcard">
183 <span class="personname fn">
184 <span class="firstname given-name">Antony</span> <span class="surname family-name">Dovgal</span>
185 </span>
186 </div>
187
188
189 <div class="author vcard">
190 <span class="personname fn">
191 <span class="firstname given-name">Nuno</span> <span class="surname family-name">Lopes</span>
192 </span>
193 </div>
194
195
196 <div class="author vcard">
197 <span class="personname fn">
198 <span class="firstname given-name">Hannes</span> <span class="surname family-name">Magnusson</span>
199 </span>
200 </div>
201
202
203 <div class="author vcard">
204 <span class="personname fn">
205 <span class="firstname given-name">Georg</span> <span class="surname family-name">Richter</span>
206 </span>
207 </div>
208
209
210 <div class="author vcard">
211 <span class="personname fn">
212 <span class="firstname given-name">Damien</span> <span class="surname family-name">Seguy</span>
213 </span>
214 </div>
215
216
217 <div class="author vcard">
218 <span class="personname fn">
219 <span class="firstname given-name">Jakub</span> <span class="surname family-name">Vrana</span>
220 </span>
221 </div>
222
223
224
225 <div class="othercredit">
226 <span class="personname fn">
227 <span class="othername">
228 <a href="preface.php#contributors" class="link">And several others</a>
229 </span>
230 </span>
231 </div>
232
233 </div>
234 <div class="pubdate">2012-03-23</div>
235
236 <div class="authorgroup" id="editors">
237 <div class="editor vcard"><strong class="editedby">Edited By</strong>:
238 <span class="personname fn">
239 <span class="firstname given-name">Philip</span> <span class="surname family-name">Olson</span>
240 </span>
241 </div>
242
243 </div>
244
245 <div class="copyright">&copy;
246 <span class="year">1997-2012</span>
247 <span class="holder">the PHP Documentation Group</span>
248 </div>
249
250
251
252 </div>
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279 <ul class="chunklist chunklist_set"><li><a href="copyright.php">Copyright</a></li><li><a href="manual.php">PHP Manual</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="preface.php">Preface</a></li></ul></li><li><a href="getting-started.php">Getting Started</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="introduction.php">Introduction</a></li><li><a href="tutorial.php">A simple tutorial</a></li></ul></li><li><a href="install.php">Installation and Configuration</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="install.general.php">General Installation Considerations</a></li><li><a href="install.unix.php">Installation on Unix systems</a></li><li><a href="install.macosx.php">Installation on Mac OS X</a></li><li><a href="install.windows.php">Installation on Windows systems</a></li><li><a href="install.cloud.php">Installation on Cloud Computing platforms</a></li><li><a href="install.fpm.php">FastCGI Process Manager (FPM)</a></li><li><a href="install.pecl.php">Installation of PECL extensions</a></li><li><a href="install.problems.php">Problems?</a></li><li><a href="configuration.php">Runtime Configuration</a></li></ul></li><li><a href="langref.php">Language Reference</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="language.basic-syntax.php">Basic syntax</a></li><li><a href="language.types.php">Types</a></li><li><a href="language.variables.php">Variables</a></li><li><a href="language.constants.php">Constants</a></li><li><a href="language.expressions.php">Expressions</a></li><li><a href="language.operators.php">Operators</a></li><li><a href="language.control-structures.php">Control Structures</a></li><li><a href="language.functions.php">Functions</a></li><li><a href="language.oop5.php">Classes and Objects</a></li><li><a href="language.namespaces.php">Namespaces</a></li><li><a href="language.exceptions.php">Exceptions</a></li><li><a href="language.references.php">References Explained</a></li><li><a href="reserved.variables.php">Predefined Variables</a></li><li><a href="reserved.exceptions.php">Predefined Exceptions</a></li><li><a href="reserved.interfaces.php">Predefined Interfaces</a></li><li><a href="context.php">Context options and parameters</a></li><li><a href="wrappers.php">Supported Protocols and Wrappers</a></li></ul></li><li><a href="security.php">Security</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="security.intro.php">Introduction</a></li><li><a href="security.general.php">General considerations</a></li><li><a href="security.cgi-bin.php">Installed as CGI binary</a></li><li><a href="security.apache.php">Installed as an Apache module</a></li><li><a href="security.filesystem.php">Filesystem Security</a></li><li><a href="security.database.php">Database Security</a></li><li><a href="security.errors.php">Error Reporting</a></li><li><a href="security.globals.php">Using Register Globals</a></li><li><a href="security.variables.php">User Submitted Data</a></li><li><a href="security.magicquotes.php">Magic Quotes</a></li><li><a href="security.hiding.php">Hiding PHP</a></li><li><a href="security.current.php">Keeping Current</a></li></ul></li><li><a href="features.php">Features</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="features.http-auth.php">HTTP authentication with PHP</a></li><li><a href="features.cookies.php">Cookies</a></li><li><a href="features.sessions.php">Sessions</a></li><li><a href="features.xforms.php">Dealing with XForms</a></li><li><a href="features.file-upload.php">Handling file uploads</a></li><li><a href="features.remote-files.php">Using remote files</a></li><li><a href="features.connection-handling.php">Connection handling</a></li><li><a href="features.persistent-connections.php">Persistent Database Connections</a></li><li><a href="features.safe-mode.php">Safe Mode</a></li><li><a href="features.commandline.php">Command line usage</a> — Using PHP from the command line</li><li><a href="features.gc.php">Garbage Collection</a></li></ul></li><li><a href="funcref.php">Function Reference</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="refs.basic.php.php">Affecting PHP's Behaviour</a></li><li><a href="refs.utilspec.audio.php">Audio Formats Manipulation</a></li><li><a href="refs.remote.auth.php">Authentication Services</a></li><li><a href="refs.calendar.php">Date and Time Related Extensions</a></li><li><a href="refs.utilspec.cmdline.php">Command Line Specific Extensions</a></li><li><a href="refs.compression.php">Compression and Archive Extensions</a></li><li><a href="refs.creditcard.php">Credit Card Processing</a></li><li><a href="refs.crypto.php">Cryptography Extensions</a></li><li><a href="refs.database.php">Database Extensions</a></li><li><a href="refs.fileprocess.file.php">File System Related Extensions</a></li><li><a href="refs.international.php">Human Language and Character Encoding Support</a></li><li><a href="refs.utilspec.image.php">Image Processing and Generation</a></li><li><a href="refs.remote.mail.php">Mail Related Extensions</a></li><li><a href="refs.math.php">Mathematical Extensions</a></li><li><a href="refs.utilspec.nontext.php">Non-Text MIME Output</a></li><li><a href="refs.fileprocess.process.php">Process Control Extensions</a></li><li><a href="refs.basic.other.php">Other Basic Extensions</a></li><li><a href="refs.remote.other.php">Other Services</a></li><li><a href="refs.search.php">Search Engine Extensions</a></li><li><a href="refs.utilspec.server.php">Server Specific Extensions</a></li><li><a href="refs.basic.session.php">Session Extensions</a></li><li><a href="refs.basic.text.php">Text Processing</a></li><li><a href="refs.basic.vartype.php">Variable and Type Related Extensions</a></li><li><a href="refs.webservice.php">Web Services</a></li><li><a href="refs.utilspec.windows.php">Windows Only Extensions</a></li><li><a href="refs.xml.php">XML Manipulation</a></li></ul></li><li><a href="internals2.php">PHP at the Core: A Hacker's Guide to the Zend Engine</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="internals2.preface.php">Preface</a></li><li><a href="internals2.counter.php">The &quot;counter&quot; Extension - A Continuing Example</a></li><li><a href="internals2.buildsys.php">The PHP 5 build system</a></li><li><a href="internals2.structure.php">Extension structure</a></li><li><a href="internals2.memory.php">Memory management</a></li><li><a href="internals2.variables.php">Working with variables</a></li><li><a href="internals2.funcs.php">Writing functions</a></li><li><a href="internals2.objects.php">Working with classes and objects</a></li><li><a href="internals2.resources.php">Working with resources</a></li><li><a href="internals2.ini.php">Working with INI settings</a></li><li><a href="internals2.streams.php">Working with streams</a></li><li><a href="internals2.pdo.php">PDO Driver How-To</a></li><li><a href="internals2.faq.php">Extension FAQs</a></li><li><a href="internals2.apiref.php">Zend Engine 2 API reference</a></li><li><a href="internals2.opcodes.php">Zend Engine 2 Opcodes</a></li><li><a href="internals2.ze1.php">Zend Engine 1</a></li></ul></li><li><a href="faq.php">FAQ</a> — FAQ: Frequently Asked Questions<ul class="chunklist chunklist_set chunklist_children"><li><a href="faq.general.php">General Information</a></li><li><a href="faq.mailinglist.php">Mailing lists</a></li><li><a href="faq.obtaining.php">Obtaining PHP</a></li><li><a href="faq.databases.php">Database issues</a></li><li><a href="faq.installation.php">Installation</a></li><li><a href="faq.build.php">Build Problems</a></li><li><a href="faq.using.php">Using PHP</a></li><li><a href="faq.passwords.php">Password Hashing</a> — Safe Password Hashing</li><li><a href="faq.html.php">PHP and HTML</a></li><li><a href="faq.com.php">PHP and COM</a></li><li><a href="faq.languages.php">PHP and other languages</a></li><li><a href="faq.migration5.php">Migrating from PHP 4 to PHP 5</a></li><li><a href="faq.misc.php">Miscellaneous Questions</a></li></ul></li><li><a href="appendices.php">Appendices</a><ul class="chunklist chunklist_set chunklist_children"><li><a href="history.php">History of PHP and Related Projects</a></li><li><a href="migration54.php">Migrating from PHP 5.3.x to PHP 5.4.x</a></li><li><a href="migration53.php">Migrating from PHP 5.2.x to PHP 5.3.x</a></li><li><a href="migration52.php">Migrating from PHP 5.1.x to PHP 5.2.x</a></li><li><a href="migration51.php">Migrating from PHP 5.0.x to PHP 5.1.x</a></li><li><a href="migration5.php">Migrating from PHP 4 to PHP 5.0.x</a></li><li><a href="oop4.php">Classes and Objects (PHP 4)</a></li><li><a href="debugger.php">Debugging in PHP</a></li><li><a href="configure.php">Configure options</a></li><li><a href="ini.php">php.ini directives</a></li><li><a href="extensions.php">Extension List/Categorization</a></li><li><a href="aliases.php">List of Function Aliases</a></li><li><a href="reserved.php">List of Reserved Words</a></li><li><a href="resource.php">List of Resource Types</a></li><li><a href="filters.php">List of Available Filters</a></li><li><a href="transports.php">List of Supported Socket Transports</a></li><li><a href="types.comparisons.php">PHP type comparison tables</a></li><li><a href="tokens.php">List of Parser Tokens</a></li><li><a href="userlandnaming.php">Userland Naming Guide</a></li><li><a href="about.php">About the manual</a></li><li><a href="cc.license.php">Creative Commons Attribution 3.0</a></li><li><a href="indexes.php">Index listing</a></li></ul></li></ul></div><br /><br />
280 <div id="usernotes">
281 <div class="head">
282 <span class="action"><a href="/manual/add-note.php?sect=index&amp;redirect=http://www.php.net/manual/en/index.php"><img src="http://static.php.net/www.php.net/images/notes-add.gif" alt="add a note" width="13" height="13" class="middle" /></a> <small><a href="/manual/add-note.php?sect=index&amp;redirect=http://www.php.net/manual/en/index.php">add a note</a></small></span>
283 <small>User Contributed Notes</small>
284 <strong>PHP Manual</strong>
285 </div>
286 <div class="note">There are no user contributed notes for this page.</div></div><br />
287 </div>
288 <div class="cleaner">&nbsp;</div>
289 </div>
290
291 <div id="footnav">
292 <a href="/source.php?url=/manual/en/index.php">show source</a> |
293 <a href="/credits.php">credits</a> |
294 <a href="/stats/">stats</a> |
295 <a href="/sitemap.php">sitemap</a> |
296 <a href="/contact.php">contact</a> |
297 <a href="/contact.php#ads">advertising</a> |
298 <a href="/mirrors.php">mirror sites</a>
299 </div>
300
301 <div id="pagefooter">
302 <div id="copyright">
303 <a href="/copyright.php">Copyright &copy; 2001-2012 The PHP Group</a><br />
304 All rights reserved.
305 </div>
306
307 <div id="thismirror">
308 <a href="/mirror.php">This mirror</a> generously provided by:
309 <a href="http://developer.yahoo.com/">Yahoo! Inc.</a><br />
310 Last updated: Wed Mar 28 09:41:05 2012 UTC
311 </div>
312 </div>
313 <!--[if IE 6]>
314 <script type="text/javascript">
315 /*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; }
316 var IE6UPDATE_OPTIONS = {
317 icons_path: "/ie6update/images/"
318 }
319 </script>
320 <script type="text/javascript" src="/ie6update/ie6update.js"></script>
321 <![endif]-->
322 </body>
323 </html>