svn: /phpdoc/kr/trunk/reference/curl/ examples.xml

From: Date: Sun, 19 Oct 2014 14:36:46 +0000
Subject: svn: /phpdoc/kr/trunk/reference/curl/ examples.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-1962@lists.php.net to get a copy of this message
acidd15 Sun, 19 Oct 2014 14:36:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=335108 Log: leave reviewed yes Changed paths: A phpdoc/kr/trunk/reference/curl/examples.xml Added: phpdoc/kr/trunk/reference/curl/examples.xml =================================================================== --- phpdoc/kr/trunk/reference/curl/examples.xml (rev 0) +++ phpdoc/kr/trunk/reference/curl/examples.xml 2014-10-19 14:36:46 UTC (rev 335108) @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 310851 Maintainer: SuHun Han Status: ready --> +<!-- Reviewed: yes Maintainer: acidd15 --> + +<chapter xml:id="curl.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="curl.examples-basic"> + <title>cURL 예시</title> + <para> + 만약 cURL 을 사용할 수 있도록 PHP 가 구성되어 있다면 cURL 함수를 사용할 수 있습니다. + cURL 함수는 <function>curl_init</function> 함수를 이용하여 cURL 핸들을 초기화 한 후에, + <function>curl_setopt</function> 함수를 이용하여 전송 정보에 대한 설정을 하고, + <function>curl_exec</function> 함수로 실행할 수 있습니다. + 실행한 후에는 <function>curl_close</function> 를 사용하여 cURL 핸들을 닫을 수 있습니다. + 여기에 example.com 사이트의 데이터를 파일로 저장하는 cURL 함수에 대한 예시가 있습니다 : + <example> + <title>PHP cURL 모듈로 example.com 페이지를 받아와서 저장하기</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$ch = curl_init("http://www.example.com/"); +$fp = fopen("example_homepage.txt", "w"); + +curl_setopt($ch, CURLOPT_FILE, $fp); +curl_setopt($ch, CURLOPT_HEADER, 0); + +curl_exec($ch); +curl_close($ch); +fclose($fp); +?> +]]> + </programlisting> + </example> + </para> + </section> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + Property changes on: phpdoc/kr/trunk/reference/curl/examples.xml ___________________________________________________________________ Added: svn:eol-style + native Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL

« previous php.doc.kr (#1962) next »