cvs: /phpdoc/functions misc.sgml
| From: | Torben Wilson | Date: | Tue, 21 Sep 1999 23:01:36 +0000 |
| Subject: | cvs: /phpdoc/functions misc.sgml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11172@lists.php.net to get a copy of this message | ||
cslawi Tue Sep 21 19:01:36 1999 EDT
Modified files:
/phpdoc/functions misc.sgml
Log:
Fixed up uniqid() docs a bit.
Index: phpdoc/functions/misc.sgml
diff -u phpdoc/functions/misc.sgml:1.8 phpdoc/functions/misc.sgml:1.9
--- phpdoc/functions/misc.sgml:1.8 Tue Sep 21 17:45:16 1999
+++ phpdoc/functions/misc.sgml Tue Sep 21 19:01:36 1999
@@ -304,9 +304,9 @@
capabilities of the user's browser. This is done by looking up
the browser's information in the
<filename>browscap.ini</filename> file. By default, the value of
- <variable>$HTTP_USER_AGENT</variable> is used; however, you can
- alter this (i.e., look up another browser's info) by passing the
- optional <parameter>user_agent</parameter> parameter to
+ $HTTP_USER_AGENT is used; however, you can alter this (i.e., look
+ up another browser's info) by passing the optional
+ <parameter>user_agent</parameter> parameter to
<function>get_browser</function>.
</simpara>
@@ -349,9 +349,8 @@
<simpara>
The output of the above script would look something like this:
</simpara>
-
- <simpara>
- <programlisting>
+
+ <programlisting>
Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)<hr>
<b>browser_name_pattern:</b> Mozilla/4\.5.*<br>
<b>parent:</b> Netscape 4.0<br>
@@ -372,8 +371,7 @@
<b>crawler:</b> <br>
<b>authenticodeupdate:</b> <br>
<b>msn:</b> <br>
- </programlisting>
- </simpara>
+ </programlisting>
<simpara>
In order for this to work, your <link
@@ -636,7 +634,7 @@
<refentry id="function.uniqid">
<refnamediv>
<refname>uniqid</refname>
- <refpurpose>generate a unique id</refpurpose>
+ <refpurpose>Generate a unique id.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@@ -647,7 +645,7 @@
</funcsynopsis>
<simpara>
<function>uniqid</function> returns a prefixed unique identifier
- based on current time in microseconds. The prefix can be useful
+ based on the current time in microseconds. The prefix can be useful
for instance if you generate identifiers simultaneously on
several hosts that might happen to generate the identifier at the
same microsecond. <parameter>prefix</parameter> can be up to 114
@@ -660,10 +658,18 @@
results more unique.
</simpara>
<simpara>
- Without an empty prefix, the returned string will be 13
- characters long. If <parameter>lcg</parameter> is true, it will
- be 23 characters.
+ With an empty <parameter>prefix</parameter>, the returned string
+ will be 13 characters long. If <parameter>lcg</parameter> is
+ true, it will be 23 characters.
</simpara>
+
+ <note>
+ <simpara>
+ The <parameter>lcg</parameter> parameter is only available in
+ PHP 4 and PHP 3.0.13 and later.
+ </simpara>
+ </note>
+
<para>
If you need a unique identifier or token and you intend to give
out that token to the user via the network (i.e. session cookies),