cvs: phpdoc /en/reference/http/functions/requests http-post-fields.xml

From: Date: Tue, 27 Mar 2007 10:32:39 +0000
Subject: cvs: phpdoc /en/reference/http/functions/requests http-post-fields.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969375915@lists.php.net to get a copy of this message
mike Tue Mar 27 10:32:39 2007 UTC Modified files: /phpdoc/en/reference/http/functions/requests http-post-fields.xml Log: - add example http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/functions/requests/http-post-fields.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/http/functions/requests/http-post-fields.xml diff -u phpdoc/en/reference/http/functions/requests/http-post-fields.xml:1.2 phpdoc/en/reference/http/functions/requests/http-post-fields.xml:1.3 --- phpdoc/en/reference/http/functions/requests/http-post-fields.xml:1.2 Wed Sep 6 20:40:38 2006 +++ phpdoc/en/reference/http/functions/requests/http-post-fields.xml Tue Mar 27 10:32:39 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. --> <refentry id="function.http-post-fields"> <refnamediv> @@ -110,36 +110,33 @@ --> - <!-- Use when examples exist <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>A <function>http_post_fields</function> example</title> - <para> - Any text that describes the purpose of the example, or - what goes on in the example should go here (inside the - <example> tag, not out - </para> <programlisting role="php"> <![CDATA[ <?php -if ($anexample === true) { - echo 'Use the PEAR Coding Standards'; -} +$fields = array( + 'name' => 'mike', + 'pass' => 'se_ret' +); +$files = array( + array( + 'name' => 'uimg', + 'type' => 'image/jpeg', + 'file' => './profile.jpg', + ) +); + +$response = http_post_fields("http://exampole.com", $fields, $files); ?> ]]> </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Use the PEAR Coding Standards -]]> - </screen> </example> </para> </refsect1> - --> <!-- Use when adding See Also links

« previous php.doc (#969375915) next »