<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 23:11:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[IBM developerWorks: Store datasets directly in shared memory with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17426</guid>
      <link>http://www.phpdeveloper.org/news/17426</link>
      <description><![CDATA[<p>
On the IBM developerWorks site today there's a new tutorial showing you how to <a href="http://www.ibm.com/developerworks/opensource/library/os-php-shared-memory/index.html">store shared data</a> directly to a shared memory space of your PHP application.
</p>
<blockquote>
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.
</blockquote>
<p>
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 <a href="http://php.net/shmop_open">shmop_open</a>, <a href="http://php.net/shmop_write">shmop_write</a> and other related functions to read, write, remove and close segments in the shared memory space. They also include an example of using the <a href="https://github.com/klaussilveira/SimpleSHM">SimpleSHM</a> library to make it easier to interact with the shared memory space as a standard storage location.
</p>]]></description>
      <pubDate>Fri, 20 Jan 2012 11:29:24 -0600</pubDate>
    </item>
  </channel>
</rss>
