quipo Fri Sep 26 09:10:03 2008 UTC
Modified files:
/peardoc/en/package/mail/mail-queue/mail-queue tutorial.xml
Log:
doc bug #14689: note about sequence emulation
http://cvs.php.net/viewvc.cgi/peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml?r1=1.12&r2=1.13&diff_format=u
Index: peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml
diff -u peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml:1.12 peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml:1.13
--- peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml:1.12 Sat Feb 23 15:15:06 2008
+++ peardoc/en/package/mail/mail-queue/mail-queue/tutorial.xml Fri Sep 26 09:10:03 2008
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<refentry id="package.mail.mail-queue.mail-queue.tutorial">
<refnamediv>
<refname>Tutorial</refname>
@@ -56,7 +56,7 @@
<para>
First you need to define some options.
As you need them two times (once for adding messages, once for sending the messages)
-its always good to add them to a config-file. Lets call it config.php
+its always good to add them to a config-file. Let's call it config.php
</para>
</refsect1>
@@ -137,13 +137,22 @@
/* Put message to queue */
-$mail_queue->put( $from, $to, $hdrs, $body );
+$mail_queue->put($from, $to, $hdrs, $body);
?>
]]>
</programlisting>
</example>
+<para>
+ NB: the first time you call <function>put</function>, PEAR::DB and
+ PEAR::MDB2 will create a new table to keep the sequence number, so
+ make sure the db user you are using has "CREATE TABLE" privileges.
+ Or you can create the table separately, calling the <function>createSequence</function>
+ method of PEAR::DB or PEAR::MDB2 (you should also be aware that the
+ two DBAL will create a table with a different field name: "id" for DB,
+ "sequence" for MDB2).
+</para>
</refsect1>
|