[PD] PHP -> netreceive

_-¯-_ jdl at xdv.org
Wed Mar 13 01:53:07 CET 2002


Olaf Matthes about [PD] PHP -> netreceive / Yesterday

 |Hi list,
 |
 |I'm planning to controll Pd via a web page. I remember some posts some
 |time ago concerning this kind of thing. Could anybody brobably send me
 |an example PHP file (or CGI script) that does the connection / sending?
 |I just don't want to spend too much time on things that already have
 |been done... (and I'm not that good in writing PHP ;-( )

basically all you need is this
http://www.php.net/manual/en/ref.sockets.php
and php compiled with --enable-sockets which the e.g. debian version is.

theres examples listed for php server and client.

i made a quick modification of it which i hopefully dont
forget to attach now.

klick http://test.at/s.php
listn http://stream.mp3.at:13012/05T

-- X Ð V .  0 r 6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socket.php
Type: application/x-httpd-php
Size: 1207 bytes
Desc: socket.php
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20020313/de9e8a8b/attachment.php>
-------------- next part --------------
#N canvas 491 112 450 300 10;
#X obj 208 98 netreceive 7007;
#X obj 154 170 print recv;
#X obj 79 112 osc~ 100;
#X obj 68 244 output_icecast;
#X obj 218 18 loadbang;
#X msg 278 55 \; pd dsp 1 \;;
#X obj 78 189 env ---;
#X obj 79 139 *~ 0.4;
#X floatatom 88 8 5 0 0;
#X obj 164 216 throw~ L;
#X obj 230 217 throw~ R;
#X obj 148 73 t b b f;
#X msg 154 122 531;
#X obj 144 13 r bla;
#X obj 159 42 unpack f f;
#X msg 216 74 set \$1;
#X msg 237 176 \; \$1 \$2 \$3 \;;
#X obj 213 145 pack s f f;
#X obj 214 123 unpack s f f;
#X connect 0 0 1 0;
#X connect 0 0 18 0;
#X connect 2 0 7 0;
#X connect 4 0 5 0;
#X connect 6 0 9 0;
#X connect 6 0 10 0;
#X connect 7 0 6 0;
#X connect 8 0 11 0;
#X connect 11 0 6 1;
#X connect 11 1 12 0;
#X connect 11 2 2 0;
#X connect 12 0 6 2;
#X connect 13 0 14 0;
#X connect 14 0 11 0;
#X connect 14 1 15 0;
#X connect 15 0 12 0;
#X connect 17 0 16 0;
#X connect 18 0 17 0;
#X connect 18 1 17 1;
#X connect 18 2 17 2;


More information about the Pd-list mailing list