fixed typos and changed script code based on php notation rule.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68710 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Rui Hirokawa 2002-01-26 08:56:25 +00:00
parent 06b9338414
commit db97ae16ba
5 changed files with 61 additions and 57 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.32 $ -->
<!-- $Revision: 1.33 $ -->
<reference id="ref.ming">
<title>Ming functions for Flash</title>
<titleabbrev>Ming (flash)</titleabbrev>
@ -3148,7 +3148,7 @@ $t = newSWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT);
<funcsynopsis>
<funcprototype>
<funcdef>void <function>swfsprite->add</function></funcdef>
<paramdef>ressource <parameter>object</parameter></paramdef>
<paramdef>resource <parameter>object</parameter></paramdef>
</funcprototype>
</funcsynopsis>
&warn.experimental.func;

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.65 $ -->
<!-- $Revision: 1.66 $ -->
<reference id="ref.misc">
<title>Miscellaneous functions</title>
<titleabbrev>Misc.</titleabbrev>
@ -118,7 +118,7 @@
<title><function>constant</function> example</title>
<programlisting role="php">
<![CDATA[
<php
<?php
define ("MAXSIZE", 100);

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.32 $ -->
<!-- $Revision: 1.33 $ -->
<reference id="ref.mnogo">
<title>mnoGoSearch Functions</title>
<titleabbrev>mnoGoSearch</titleabbrev>
@ -227,10 +227,10 @@
<simpara>Example:</simpara>
<informalexample>
<programlisting role="C">
<programlisting role="php">
<![CDATA[
if (Udm_Api_Version() >= 30111) {
print "Total number of urls in database: ".Udm_Get_Doc_Count($udm)."<br>\n";
if (udm_api_version() >= 30111) {
print "Total number of urls in database: ".udm_get_doc_count($udm)."<br>\n";
}
]]>
</programlisting>
@ -279,6 +279,7 @@
</para>
<literallayout>
<![CDATA[
$array[0] will contain ''
$array[1] will contain 'Root'
$array[2] will contain '02'
@ -287,6 +288,7 @@
$array[5] will contain 'Auto'
$array[4] will contain '02031D'
$array[5] will contain 'Ferrari'
]]>
</literallayout>
<example>
<title>
@ -294,15 +296,17 @@
'&gt; Root &gt; Sport &gt; Auto &gt; Ferrari'
</title>
<programlisting role="php">
&lt;?php
$cat_path_arr=Udm_Cat_Path($udm_agent,$cat);
$cat_path='';
for ($i=0; $i&lt;count($cat_path_arr); $i+=2) {
$path=$cat_path_arr[$i];
$name=$cat_path_arr[$i+1];
$cat_path .= " &gt; &lt;a href=\"$PHP_SELF?cat=$path\"&gt;$name&lt;/a&gt; ";
}
&gt;
<![CDATA[
<?php
$cat_path_arr = udm_cat_path($udm_agent,$cat);
$cat_path = '';
for ($i=0; $i<count($cat_path_arr); $i+=2) {
$path = $cat_path_arr[$i];
$name = $cat_path_arr[$i+1];
$cat_path .= " > <a href=\"$PHP_SELF?cat=$path\">$name</a> ";
}
?>
]]>
</programlisting>
</example>
</refsect1>
@ -341,6 +345,7 @@
</para>
<literallayout>
<![CDATA[
$array[0] will contain '020300'
$array[1] will contain 'Audi'
$array[2] will contain '020301'
@ -349,6 +354,7 @@
$array[5] will contain 'Opel'
...
etc.
]]>
</literallayout>
<literallayout>
Following is an example of displaying links of the current level in format:
@ -359,15 +365,17 @@ Following is an example of displaying links of the current level in format:
</literallayout>
<informalexample>
<programlisting role="php">
&lt;?php
$cat_list_arr=Udm_Cat_List($udm_agent,$cat);
$cat_list='';
for ($i=0; $i&lt;count($cat_list_arr); $i+=2) {
$path=$cat_list_arr[$i];
$name=$cat_list_arr[$i+1];
$cat_list .= "&lt;a href=\"$PHP_SELF?cat=$path\"&gt;$name&lt;/a&gt;&lt;br&gt;";
}
&gt;
<![CDATA[
<?php
$cat_list_arr = udm_cat_list($udm_agent,$cat);
$cat_list = '';
for ($i=0; $i<count($cat_list_arr); $i+=2) {
$path = $cat_list_arr[$i];
$name = $cat_list_arr[$i+1];
$cat_list .= "<a href=\"$PHP_SELF?cat=$path\">$name</a><br>";
}
?>
]]>
</programlisting>
</informalexample>
@ -905,11 +913,11 @@ Following is an example of displaying links of the current level in format:
<simpara>Example:</simpara>
<informalexample>
<programlisting role="C">
if (! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_DB,'','',1)) {
printf("Error #%d: '%s'\n",Udm_Errno($udm),Udm_Error($udm));
exit;
}
<programlisting role="php">
if (! udm_load_ispell_data($udm,UDM_ISPELL_TYPE_DB,'','',1)) {
printf("Error #%d: '%s'\n", udm_errno($udm), udm_error($udm));
exit;
}
</programlisting>
</informalexample>
</listitem>
@ -930,11 +938,11 @@ Following is an example of displaying links of the current level in format:
<simpara>Example:</simpara>
<informalexample>
<programlisting role="C">
if ((! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_AFFIX,'en','/opt/ispell/en.aff',0)) ||
(! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_AFFIX,'ru','/opt/ispell/ru.aff',0)) ||
(! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_SPELL,'en','/opt/ispell/en.dict',0)) ||
(! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_SPELL,'ru','/opt/ispell/ru.dict',1))) {
<programlisting role="php">
if ((! udm_load_ispell_data($udm,UDM_ISPELL_TYPE_AFFIX,'en','/opt/ispell/en.aff',0)) ||
(! udm_load_ispell_data($udm,UDM_ISPELL_TYPE_AFFIX,'ru','/opt/ispell/ru.aff',0)) ||
(! udm_load_ispell_data($udm,UDM_ISPELL_TYPE_SPELL,'en','/opt/ispell/en.dict',0)) ||
(! udm_load_ispell_data($udm,UDM_ISPELL_TYPE_SPELL,'ru','/opt/ispell/ru.dict',1))) {
exit;
}
</programlisting>
@ -1014,11 +1022,13 @@ Following is an example of displaying links of the current level in format:
<simpara>Example:</simpara>
<informalexample>
<programlisting role="C">
if (! Udm_Load_Ispell_Data($udm,UDM_ISPELL_TYPE_SERVER,'','',1)) {
printf("Error loading ispell data from server&lt;br&gt;\n");
exit;
}
<programlisting role="php">
<![CDATA[
if (!udm_load_ispell_data($udm,UDM_ISPELL_TYPE_SERVER,'','',1)) {
printf("Error loading ispell data from server<br>\n");
exit;
}
]]>
</programlisting>
</informalexample>
</listitem>
@ -1293,13 +1303,11 @@ Following is an example of displaying links of the current level in format:
</refsect1>
</refentry>
<refentry id='function.udm-check-stored'>
<refnamediv>
<refname>udm_check_stored</refname>
<refpurpose>
Open connection to stored
Check connection to stored
</refpurpose>
</refnamediv>
<refsect1>
@ -1318,13 +1326,11 @@ Following is an example of displaying links of the current level in format:
</refsect1>
</refentry>
<refentry id='function.udm-close-stored'>
<refnamediv>
<refname>udm_close_stored</refname>
<refpurpose>
Open connection to stored
Close connection to stored
</refpurpose>
</refnamediv>
<refsect1>
@ -1342,8 +1348,6 @@ Following is an example of displaying links of the current level in format:
</refsect1>
</refentry>
<refentry id='function.udm-crc32'>
<refnamediv>
<refname>udm_crc32</refname>
@ -1366,8 +1370,6 @@ Following is an example of displaying links of the current level in format:
</refsect1>
</refentry>
<refentry id='function.udm-open-stored'>
<refnamediv>
<refname>udm_open_stored</refname>
@ -1390,8 +1392,6 @@ Following is an example of displaying links of the current level in format:
</refsect1>
</refentry>
</reference>
<!-- Keep this comment at the end of the file

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.22 $ -->
<!-- $Revision: 1.23 $ -->
<reference id="ref.msql">
<title>mSQL functions</title>
<titleabbrev>mSQL</titleabbrev>
@ -322,7 +322,11 @@
<funcsynopsis>
<funcprototype>
<funcdef>string <function>msql_error</function></funcdef>
<paramdef> <parameter></parameter></paramdef>
<paramdef>int
<parameter>
<replaceable><optional>link_identifier</optional></replaceable>
</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.83 $ -->
<!-- $Revision: 1.84 $ -->
<reference id="ref.mysql">
<title>MySQL Functions</title>
<titleabbrev>MySQL</titleabbrev>
@ -455,7 +455,7 @@ mysql_close($link);
<title>MySQL data seek example</title>
<programlisting role="php">
<![CDATA[
&<?php
<?php
$link = mysql_pconnect("kron", "jutta", "geheim")
or die("Could not connect");