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

Internet Super Hero Blog: mysqlnd saves 40% memory, finally (new tuning options)!

DeveloperTutorials.com: How to Install PHP 5 on Linux

David Otton's Blog: php://memory, Unit Tests

Brian Swan's Blog: Updating PHP Settings in Windows Azure

SitePoint PHP Blog: Managing Gettext Translations on Shared Hosting


Community Events





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


podcast laravel series deployment update introduction community zendserver release install package language interview library api list framework tips opinion symfony

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