[Spread-users] Re: Spread-users Digest, Vol 13, Issue 5
Shane Adams
adamsch1 at yahoo.com
Thu Jan 12 12:57:40 EST 2006
Hey - depending on what you are doing you can do a bridge. I.E write a small C program that listens to a domain socket that PHP can easily write to using fsockopen. The C program talks to spread. Something like this would be one-way, but has its uses in a PHP website for notifications. I've used this in a non-spread enviornment and it worked great. The functional requirements for the system was one-way notifications.
Bi-directionally would be tougher of course, and would necesitate writing a proper Zend extension to benefit fully.
You might take a look at some of the tools that auto-generate scripting language extensions around C code. Swig I think the popular one is called. It has a preprocessor that runs against a definition file that represents a C/C++ library. The output is a python/perl/php extensions that just works. I've used it for perl and was quite happy with it.
Shane
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Jan 2006 20:33:31 -0600
From: "Jeffrey D. Wheelhouse" <jdw_list at wheelhouse.org>
Subject: [Spread-users] PHP & Spread
To: "spread-users at lists.spread.org" <spread-users at lists.spread.org>
Message-ID: <43C5BFFB.9020103 at wheelhouse.org>
Content-Type: text/plain; charset=ISO-8859-1
Over the holidays I discovered Spread and did some reading and playing
around with it. It seems like it can do several things that I really
need to do.
Unfortunately, a big chunk of our projects are in PHP. I checked out
the PHP spread extension listed on spread.org, but ran into some
trouble. It's very old, missing some functionality, it appears to be
built for a deprecated version of the spread library, and it's got a
couple of fairly serious memory corruption bugs. In a nutshell, it
smells abandoned.
Has anyone dealt with these issues in the past, and if so, are there
workarounds? I don't think I'm quite up to snuff on the Zend engine to
be patching this on my own... I thought I had it working, but then I
started finding the content of my spread messages in the middle of
totally unrelated SQL strings.
(If there's a way to search the list archive, I apologize; I didn't find
it.)
Thanks for any advice! Spread certainly seems like a great tool, and it
doesn't seem that I've had these problems using it with C++. I'm really
hoping we can use it.
Jeff
------------------------------
_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
End of Spread-users Digest, Vol 13, Issue 5
*******************************************
More information about the Spread-users
mailing list