mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Commented example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152511 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7cb85eff94
commit
6eebb0e6d5
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/curl.xml, last change in rev 1.1 -->
|
||||
<refentry id="function.curl-init">
|
||||
<refnamediv>
|
||||
|
@ -28,13 +28,17 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// create a new curl resource
|
||||
$ch = curl_init();
|
||||
|
||||
// set URL and other appropriate options
|
||||
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
|
||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||
|
||||
// grab URL and pass it to the browser
|
||||
curl_exec($ch);
|
||||
|
||||
// close curl resource, and free up system resources
|
||||
curl_close($ch);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue