On Wed, Feb 23, 2005 at 05:40:02AM +0100, pd-list-request@iem.at wrote:
Message: 2 From: lluis lluis@artefacte.org To: pd-list@iem.at Subject: Re: [PD] flash/pd Date: Tue, 22 Feb 2005 22:21:43 +0100
On Tuesday 22 February 2005 22:34, Pall Thayer wrote:
Hi, You can do PHP to PD without using OSC.
$fp = fsockopen("hostname",port);
will open a socket connection to a netreceive in a pd patch. Rather use udp? Then:
$fp = fsockopen("udp://hostname", port);
fputs($fp,"message;\n");
will write "message" to the PD netreceive (note the ";\n" line terminator. Actually I think it's enough to have just ";").
But I don't know how you plan to make your pages receive data unless you make them update every 1/2 second or so. However that could cause problems with slider positions if it updates while a user is moving one. Tricky.
yes the trick is ::
in another frame, never send the </HTML> end tag and just write every time thinks like this ::
parent.frames.main.slider1.moveby(0, 50);
the browser never stops to receive data, just need some way to know if the connection is up.
Hi,
Even better: http://sastools.com/b2/post/79394137
or: http://developer.apple.com/internet/webcontent/iframe.html
Both of which don't have to keep the socket open.
Best regards,
Chris.
chris@mccormick.cx http://mccormick.cx