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

ServerGrove Blog: Spooling emails with Symfony2 on VPS and Shared Hosting

PHP-GTK Community Site: PHP-GTK on Vista Memory Issue

Paul Reinheimer's Blog: Memory usage in PHP

DevShed: PHP Datastorage Class

Brian Swan's Blog: How to Use the Storage Emulator with the Windows Azure SDK for PHP


Community Events





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


language series testing laravel install application list community interview configure unittest wordpress code developer podcast introduction api library release threedevsandamaybe

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