svn: /phpdoc/en/trunk/language/context/ curl.xml http.xml
| From: | Jakub Vrana | Date: | Fri, 06 Jan 2012 09:20:53 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/context/ curl.xml http.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9324@lists.php.net to get a copy of this message | ||
vrana Fri, 06 Jan 2012 09:20:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321821
Log:
Whitespace
Changed paths:
U phpdoc/en/trunk/language/context/curl.xml
U phpdoc/en/trunk/language/context/http.xml
Modified: phpdoc/en/trunk/language/context/curl.xml
===================================================================
--- phpdoc/en/trunk/language/context/curl.xml 2012-01-06 09:11:20 UTC (rev 321820)
+++ phpdoc/en/trunk/language/context/curl.xml 2012-01-06 09:20:53 UTC (rev 321821)
@@ -170,7 +170,7 @@
)
);
-$context = stream_context_create($opts);
+$context = stream_context_create($opts);
$result = file_get_contents('http://example.com/submit.php', false,
$context);
Modified: phpdoc/en/trunk/language/context/http.xml
===================================================================
--- phpdoc/en/trunk/language/context/http.xml 2012-01-06 09:11:20 UTC (rev 321820)
+++ phpdoc/en/trunk/language/context/http.xml 2012-01-06 09:20:53 UTC (rev 321821)
@@ -284,7 +284,7 @@
)
);
-$context = stream_context_create($opts);
+$context = stream_context_create($opts);
$result = file_get_contents('http://example.com/submit.php', false,
$context);
@@ -293,7 +293,7 @@
</programlisting>
</example><!-- }}} -->
</para>
- <para>
+ <para>
<example xml:id="context.http.example-fetch-ignore-redirect"><!-- {{{ -->
<title>Ignore redirects but fetch headers and content </title>
<programlisting role="php">
@@ -302,11 +302,13 @@
$url = "http://www.example.org/header.php";
-$opts = array(
- 'http' => array('method' => 'GET',
- 'max_redirects' => '0',
- 'ignore_errors' => '1')
- );
+$opts = array('http' =>
+ array(
+ 'method' => 'GET',
+ 'max_redirects' => '0',
+ 'ignore_errors' => '1'
+ )
+);
$context = stream_context_create($opts);
$stream = fopen($url, 'r', false, $context);