File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: fc9a0a8b29a7a099998bdd71fe5350a10b18fe62 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 98ee565bfbea26d2a9c8f8a8707f0403603f719e Maintainer: takagi Status: ready -->
44
55<refentry xml : id =" function.curl-escape" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
66 <refnamediv >
6868 <programlisting role =" php" >
6969<![CDATA[
7070<?php
71+
7172// curl ハンドルを作成します
7273$ch = curl_init();
7374
@@ -79,10 +80,11 @@ $location = curl_escape($ch, 'Hofbräuhaus / München');
7980$url = "http://example.com/add_location.php?location={$location}";
8081// その結果: http://example.com/add_location.php?location=Hofbr%C3%A4uhaus%20%2F%20M%C3%BCnchen
8182
82- // HTTP リクエストを送信し、ハンドルを閉じます
83+ // オプションを設定し、 HTTP リクエストを送信します
8384curl_setopt($ch, CURLOPT_URL, $url);
8485curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
8586curl_exec($ch);
87+
8688?>
8789]]>
8890 </programlisting >
You can’t perform that action at this time.
0 commit comments