PHP Classes

File: ipcContainer.example2.php

Recommend this page to a friend!
  Classes of Matthew Knowlton   ipcContainer   ipcContainer.example2.php   Download  
File: ipcContainer.example2.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: ipcContainer
Share variables between tasks with shared memory
Author: By
Last change:
Date: 9 years ago
Size: 430 bytes
 

Contents

Class file image Download
<pre>
<?php
require_once('ipcContainer.class.php');

$container1 = new ipcContainer('1234');
$container2 = new ipcContainer('4321');

//echo contents of var test from containers
print_r($container1->test);
echo
'<br/>';
print_r($container2->test);
echo
'<br/>';

echo
'<hr/>';

//echo data dump from containers
print_r($container1->data());
echo
'<br/>';
print_r($container2->data());
echo
'<br/>';

?>
<pre>