For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > March 2006 > cvs: phpdoc /en/reference/stream/functions stream-context-create.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/stream/functions stream-context-create.xml
Sara Golemon

2006-03-27, 6:58 pm

pollita Mon Mar 27 21:36:59 2006 UTC

Modified files:
/phpdoc/en/reference/stream/functions stream-context-create.xml
Log:
Document second arg to stream_context_create()

http://cvs.php.net/viewcvs.cgi/phpd...5&diff_format=u
Index: phpdoc/en/reference/stream/functions/stream-context-create.xml
diff -u phpdoc/en/reference/stream/functions/stream-context-create.xml:1.4 phpdoc/en/reference/stream/functions/stream-context-create.xml:1.5
--- phpdoc/en/reference/stream/functions/stream-context-create.xml:1.4 Thu Aug 12 18:11:59 2004
+++ phpdoc/en/reference/stream/functions/stream-context-create.xml Mon Mar 27 21:36:58 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="function.stream-context-create">
<refnamediv>
<refname>stream_context_create</refname>
@@ -10,6 +10,7 @@
<methodsynopsis>
<type>resource</type><methodname>stream_context_create</methodname>
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
+ <methodparam choice="opt"><type>array</type><parameter>params</parameter></methodparam>
</methodsynopsis>
<simpara>
Creates and returns a stream context with any options supplied in
@@ -21,6 +22,18 @@
<literal>$arr['wrapper']['option'] = $value</literal>.
It defaults to an empty array.
</simpara>
+ <simpara>
+ <parameter>params</parameter> must be an associative array
+ in the format <literal>$arr['parameter'] = $value</literal>.
+ Refer to <function>stream_context_set_params</function> for
+ a listing of standard stream parameters.
+ </simpara>
+ <note>
+ <simpara>
+ The <parameter>params</parameter> argument
+ was added to <literal>PHP 6.0.0</literal>.
+ </simpara>
+ </note>
<example>
<title>Using <function>stream_context_create</function></title>
<programlisting role="php">
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com