Vulcan Logic SRM  

SRM - Documentation


^ SRM Documentation
^ Features

- SRM as a session handler
- Calling remote functions in SRM
- Application level variables
- Remote objects

Application level variables

An application level variable is the name given to data stored within the SRM daemon, and can persist across multiple client requests. This means it is possible to use these variables in every script. These variables are stored in the SRM objects' globals array, and can be accessed by directly requesting the specific value. An example showing how to access and set these variables can be found below:

<?php
    $obj 
= new SRM ('localhost'7777);
    
$obj->globals['var'] = $data;
    
$data2 $obj->globals['var'];
?>
   

Due to the nature of storing these arrays, it is suggested that a user implement a system of namespaces for sanitys sake. Namespacing will allow a user to have specific application variables on a per application basis without having to worry about if a name has already been used.

Prev: Calling remote functions in SRM Next: Remote objects


© 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by The Vulcan Logic Group