News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Store datasets directly in shared memory with PHP
January 20, 2012 @ 11:29:24

On the IBM developerWorks site today there's a new tutorial showing you how to store shared data directly to a shared memory space of your PHP application.

Once created, and given proper permissions, other processes in the same machine can manipulate those segments by: read, write, and delete. This means that an application written in C can share information with an application written in other languages, such as Java or PHP. They can all share information, as long as they can access and understand that information. [...] This article's proposal is simple, learn how to create and manipulate shared memory segments with PHP and use them to store datasets that other applications can use.

Your PHP installation will need to have been compiled with "enable-shmop" to work with the code in this tutorial. Their examples show how to use the shmop_open, shmop_write and other related functions to read, write, remove and close segments in the shared memory space. They also include an example of using the SimpleSHM library to make it easier to interact with the shared memory space as a standard storage location.

0 comments voice your opinion now!
shared memory shmop dataset simpleshm storage


blog comments powered by Disqus

Similar Posts

Acquia Blog: The Future of PHP is Shared Power Tools

Sara Goleman\'s Blog: What the heck is TSRMLS_CC anyway?

Derick Rethans' Blog: Collecting Garbage: Performance Considerations

Gopal Vijayaraghavan's Blog: APC 3.1.2 Released!

Stuart Herbert's Blog: Using suexec To Secure A Shared Server


Community Events





Don't see your event here?
Let us know!


list library framework composer symfony podcast language laravel security community tool series voicesoftheelephpant release interview opinion version artisanfiles introduction conference

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework