\n";
exit;
}
echo 'Attempting to allocate 1 KB of shared memory....: ' ;
if ( $shm_id = @shmop_open( ftok( __FILE__, 'N' ), "c", 0600, 1024) ) {
echo "OK
\n";
echo 'Attempting to write 10 bytes to that block....: ' ;
if (! $shm_nb = @shmop_write( $shm_id, '1234567890' , 0) ) {
echo "ERROR
\n";
} else {
echo "OK
\n";
echo 'Attempting to read those 10 bytes....: ' ;
if ( @shmop_read($shm_id, 0, 10) != '1234567890' ) {
echo "ERROR
\n";
} else {
echo "OK
\nYour site is compatible with NinjaFirewall (WP+ Edition) shared-memory option!";
}
}
@shmop_delete($shm_id);
@shmop_close($shm_id);
} else {
echo "ERROR
\n";
}
?>