Member Function Documentation
FileHandler |
( |
|
$file_name = "chat_data" , |
|
|
|
$file_path = "@" |
|
) |
| |
constructor
does nothing special, just acquires handles for a memory segment and a semaphore to it
public
- Parameters
-
integer | $key | must be unique on this machine |
integer | $size | in bytes |
print error message and exit script
private
- Parameters
-
string | $msg | the message to print |
restore |
( |
& |
$what, |
|
|
|
$key |
|
) |
| |
restores a variable from shared memory
public
- Parameters
-
mixed | &$what | variable to restore (call by reference) |
integer | $key | the key from which to store |
stores a variable in shared memory
public
- Parameters
-
mixed | &$what | variable to store (call by reference) |
integer | $key | the key under which to store |
Field Documentation
The documentation for this class was generated from the following file: