Hey Derick because it was the same as the example above it, only with the
title of "Functions" instead of "Global Variables" :)
On Mon, 18 Feb 2002 derick@vl-srm.net wrote:
> Hey Dan,
>
> why did you remove this example?
>
> - <refsect2 id="class.srm.module-functions">
> - <title>Functions</title>
> - <para>
> - The <classname>SRM</classname> class can also be used to manage global
> - variables. Those variables are stored in the SRM Daemon, and are
> - accessible by every script connection to the daemon. You can access those
> - global variables with the <varname>globals</varname> array. The example
> - below shows how to set and get these variables.
> - </para>
> - <para>
> - <example>
> - <title>Using global variables</title>
> - <programlisting><?php
> - /* make a connection to the daemon */
> - $con = new SRM ('localhost', 7777);
> -
> - /* set the global variable 'foo' to 807 */
> - $con->globals['foo'] = 807;
> -
> - /* display the contents of global variable 'bar' */
> - echo $con->globals['bar'];
> - ?></programlisting>
> - </example>
> - </para>
> - </refsect2>
>
> regards,
> Derick
>
> On Mon, 18 Feb 2002 kalowsky@php.net wrote:
>
> > Date: Mon Feb 18 07:03:56 CET 2002
> > User: Dan Kalowsky
> > Directory: srmdoc/user
> >
> > Log Message:
> > [1.11]
> > - Updated some of the text
> >
> > Modified files:
> > srmdoc/user/classes.xml (version: 1.4)
>
>---------------------------------------------------------------<
Dan Kalowsky "Tonight I think I'll walk alone.
http://www.deadmime.org/~dank I'll find soul as I go home."
dank@deadmime.org - "Temptation", New Order
Received on Mon Feb 18 16:57:06 2002
This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 04:00:03 CET