cvs: phpdoc /en/reference/mysqli/mysqli set-local-infile-default.xml set-local-infile-handler.xml
| From: | Hartmut Holzgraefe | Date: | Sun, 13 Jan 2008 13:40:38 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysqli/mysqli set-local-infile-default.xml set-local-infile-handler.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1031@lists.php.net to get a copy of this message | ||
hholzgra Sun Jan 13 13:40:38 2008 UTC
Modified files:
/phpdoc/en/reference/mysqli/mysqli set-local-infile-default.xml
set-local-infile-handler.xml
Log:
documented mysqli_set-local-infile-default(),
updated mysqli_set-local-infile-handler() example.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml
diff -u phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml:1.2
phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml:1.3
--- phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml:1.2 Wed Jan 2 15:48:24 2008
+++ phpdoc/en/reference/mysqli/mysqli/set-local-infile-default.xml Sun Jan 13 13:40:38 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry xml:id="mysqli.set-local-infile-default" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::set_local_infile_default</refname>
@@ -14,10 +14,41 @@
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
</methodsynopsis>
- &warn.undocumented.func;
+ Deactivates a <literal>LOAD DATA INFILE LOCAL</literal> handler previously
+ set with <function>mysqli_set_local_infile_handler</function>.
</refsect1>
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &mysqli.link.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>See <function>mysqli_set_local_infile_handler</function>
examples</para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>mysqli_set_local_infile_handler</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml
diff -u phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml:1.3
phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml:1.4
--- phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml:1.3 Sun Jan 13 00:45:06 2008
+++ phpdoc/en/reference/mysqli/mysqli/set-local-infile-handler.xml Sun Jan 13 13:40:38 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry xml:id="mysqli.set-local-infile-handler" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::set_local_infile_handler</refname>
@@ -107,11 +107,12 @@
return strlen($buffer);
}
- $db->set_local_infile_handler("callme");
echo "Input:\n";
+ $db->set_local_infile_handler("callme");
$db->query("LOAD DATA LOCAL INFILE 'input.txt' INTO TABLE t1");
+ $db->set_local_infile_default();
$res = $db->query("SELECT * FROM t1");
@@ -143,14 +144,16 @@
return strlen($buffer);
}
- mysqli_set_local_infile_handler($db, "callme");
echo "Input:\n";
+ mysqli_set_local_infile_handler($db, "callme");
mysqli_query($db, "LOAD DATA LOCAL INFILE 'input.txt' INTO TABLE t1");
+ mysqli_set_local_infile_default($db);
$res = mysqli_query($db, "SELECT * FROM t1");
+
echo "\nResult:\n";
while ($row = mysqli_fetch_assoc($res)) {
echo join(",", $row)."\n";