I can't figure out what's wrong with my php/apache/mysql/phpChat, coz this...
<?
$chat_shm_key = 31337; // key to use for shared memory
$chat_shm_size = 512 * 1024; // size of shared memory segment
$chat_shm_var = 123; // key to use for variable
$shm = shm_attach($chat_shm_key, $chat_shm_size);
$lock_array = array();
$lock_array[0] = 1;
shm_put_var($shm, $chat_shm_var, $lock_array);
while(list($key, $value) = each($lock_array))
print("Key \"$key\" Value \"$value\"<br>");
shm_detach($shm);
?>
...is not working!
I got errormessage like this:
" Fatal error: Call to undefined function: shm_attach() in crshmem.php on line 4 "
..and everything else works fine...
-Tero