apc.rfc1867 example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@234375 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2007-04-24 03:54:47 +00:00
parent 13cdb42481
commit 30764337e3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<section id="apc.configuration">
&reftitle.runtime;
&extension.runtime;
@ -548,6 +548,34 @@
new uploads that happen while a previous one is still going will disable
the tracking for the previous.
</para>
<para>
<example>
<title>An apc.rfc1867 example</title>
<programlisting role="php">
<![CDATA[
<?php
print_r(apc_fetch("upload_$_POST[APC_UPLOAD_PROGRESS]"));
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[total] => 1142543
[current] => 1142543
[rate] => 1828068.8
[filename] => test
[name] => file
[temp_filename] => /tmp/php8F
[cancel_upload] => 0
[done] => 1
)
]]>
</screen>
</example>
</para>
</listitem>
</varlistentry>