Using shared memory with php and c?

The PHP shmop functions are just wrappers for the underlying POSIX functions which doesn't seem to be available under windows.

Up vote 2 down vote favorite share g+ share fb share tw.

Php c ipc shared-memory link|improve this question asked Mar 25 '09 at 9:04JDustin335.

The PHP shmop functions are just wrappers for the underlying POSIX functions, which doesn't seem to be available under windows. From the PHP manual: Note: Versions of Windows previous to Windows 2000 do not support shared memory. Under Windows, Shmop will only work when PHP is running as a web server module, such as Apache or IIS (CLI and CGI will not work).

Appearently PHP emulates this behaviour within apache, but since it isn't available in the stand alone binaries it will hardly integrate with the windows equivalents.

I wanted to allow PHP to access shared memory that was created and written to by a Windows application. I achieved this by creating my own php extension (called php_gsect. Dll).

This may not be what you want but my php_gsect attaches to the global section and reads (or writes) a number of bytes which I can then manipulate. FYI: My windows application is retreiving dynamic trend data from another system and putting the data into a named global section. The php web page is accessing the data from the global section and creating a chart (using the ESJ chart library).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions