didou Wed Jul 16 13:21:14 2003 EDT Modified files: /phpdoc/en/reference/snmp/functions snmp-set-quick-print.xml snmpget.xml snmpwalk.xml snmpwalkoid.xml Log: adding PHP tags in the examples Index: phpdoc/en/reference/snmp/functions/snmp-set-quick-print.xml diff -u phpdoc/en/reference/snmp/functions/snmp-set-quick-print.xml:1.2 phpdoc/en/reference/snmp/functions/snmp-set-quick-print.xml:1.3 --- phpdoc/en/reference/snmp/functions/snmp-set-quick-print.xml:1.2 Wed Apr 17 02:44:04 2002 +++ phpdoc/en/reference/snmp/functions/snmp-set-quick-print.xml Wed Jul 16 13:21:14 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmp-set-quick-print"> <refnamediv> @@ -31,12 +31,14 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php snmp_set_quick_print(0); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; snmp_set_quick_print(1); $a = snmpget("127.0.0.1", "public", ".1.3.6.1.2.1.2.2.1.9.1"); echo "$a<BR>\n"; +?> ]]> </programlisting> </informalexample> Index: phpdoc/en/reference/snmp/functions/snmpget.xml diff -u phpdoc/en/reference/snmp/functions/snmpget.xml:1.2 phpdoc/en/reference/snmp/functions/snmpget.xml:1.3 --- phpdoc/en/reference/snmp/functions/snmpget.xml:1.2 Wed Apr 17 02:44:04 2002 +++ phpdoc/en/reference/snmp/functions/snmpget.xml Wed Jul 16 13:21:14 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpget"> <refnamediv> @@ -33,7 +33,9 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php $syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0"); +?> ]]> </programlisting> </informalexample> Index: phpdoc/en/reference/snmp/functions/snmpwalk.xml diff -u phpdoc/en/reference/snmp/functions/snmpwalk.xml:1.2 phpdoc/en/reference/snmp/functions/snmpwalk.xml:1.3 --- phpdoc/en/reference/snmp/functions/snmpwalk.xml:1.2 Wed Apr 17 02:44:04 2002 +++ phpdoc/en/reference/snmp/functions/snmpwalk.xml Wed Jul 16 13:21:14 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalk"> <refnamediv> @@ -36,7 +36,9 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php $a = snmpwalk("127.0.0.1", "public", ""); +?> ]]> </programlisting> </informalexample> @@ -50,9 +52,11 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php for ($i=0; $i < count($a); $i++) { echo $a[$i]; } +?> ]]> </programlisting> </informalexample> Index: phpdoc/en/reference/snmp/functions/snmpwalkoid.xml diff -u phpdoc/en/reference/snmp/functions/snmpwalkoid.xml:1.2 phpdoc/en/reference/snmp/functions/snmpwalkoid.xml:1.3 --- phpdoc/en/reference/snmp/functions/snmpwalkoid.xml:1.2 Wed Apr 17 02:44:05 2002 +++ phpdoc/en/reference/snmp/functions/snmpwalkoid.xml Wed Jul 16 13:21:14 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/snmp.xml, last change in rev 1.2 --> <refentry id="function.snmpwalkoid"> <refnamediv> @@ -44,7 +44,9 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php $a = snmpwalkoid("127.0.0.1", "public", ""); +?> ]]> </programlisting> </informalexample> @@ -58,9 +60,11 @@ <informalexample> <programlisting role="php"> <![CDATA[ +<?php for (reset($a); $i = key($a); next($a)) { echo "$i: $a[$i]<br>\n"; } +?> ]]> </programlisting> </informalexample>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php