For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2006 > cvs: phpdoc /en/reference/http/functions/parsers http-parse-message.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/http/functions/parsers http-parse-message.xml
Philip Olson

2006-09-23, 6:57 pm

philip Sat Sep 23 18:39:49 2006 UTC

Modified files:
/phpdoc/en/reference/http/functions/parsers http-parse-message.xml
Log:
Reword the documentation, add markup, and fix the example (closes bug #38936)


http://cvs.php.net/viewvc.cgi/phpdo...3&diff_format=u
Index: phpdoc/en/reference/http/functions/parsers/http-parse-message.xml
diff -u phpdoc/en/reference/http/functions/parsers/http-parse-message.xml:1.2 phpdoc/en/reference/http/functions/parsers/http-parse-message.xml:1.3
--- phpdoc/en/reference/http/functions/parsers/http-parse-message.xml:1.2 Wed Sep 6 20:40:38 2006
+++ phpdoc/en/reference/http/functions/parsers/http-parse-message.xml Sat Sep 23 18:39:49 2006
@@ -1,11 +1,10 @@
<?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-parse-message">
<refnamediv>
<refname>http_parse_message</refname>
- <refpurpose>Parse HTTP message
-</refpurpose>
+ <refpurpose>Parse the HTTP message</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
@@ -14,7 +13,8 @@
<methodparam><type>string</type><parameter>message</parameter></methodparam>
</methodsynopsis>
<para>
- Parses (a) http_message(s) into a simple recursive object structure.
+ Parses the HTTP <parameter>message</parameter> into a simple
+ recursive <type>object</type>.
</para>
</refsect1>
<refsect1 role="parameters">
@@ -35,7 +35,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns an hierarchical object structure of the parsed messages.
+ A hierarchical <type>object</type> structure of the parsed messages.
</para>
</refsect1>

@@ -82,11 +82,12 @@
<programlisting role="php">
<![CDATA[
<?php
- print_r(http_parse_message(http_get(URL,
array('redirect' => 3)));
+define ('URL', 'http://www.example.com/');
+print_r(http_parse_message(http_get(URL
, array('redirect' => 3))));
?>
]]>
</programlisting>
- &example.outputs;
+ &example.outputs.similar;
<screen>
<![CDATA[
stdClass object
Sponsored Links







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

Copyright 2008 codecomments.com