Forums > MaxMSP

Communicating with PHP

August 14, 2008 | 2:50 pm

I would like my max patch to communicate with a php script on my server and just wondered if anyone had an opinion on the best way to do this?

UDPSend/receive and Netsend/receive are obvious choises.

CNMAT did something with php once but I can’t find it. Anyone know the object I mean?


August 14, 2008 | 4:54 pm

We had some PHP and OSC talking to Max from Second Life in a project by one of my students last year. Read the following paper and email her or me any questions you may have.

http://sound.oneemptyspace.net/other/second_life_research.pdf

Megan England
mne3w@virginia.edu

Nathan Wolek
nwolek@stetson.edu


August 15, 2008 | 3:18 pm

If you like to use OSC you can use the OSC.php script that you can download from http://andy.schmeder.net/freesoftware (you can access this also from http://opensoundcontrol.org/ website).
If you don’t like to use OSC you can find in the script OSC.php the function OSCClient, that use UDP socket.
You can use this function to send unformatted message to Max.
For max side I use java object [mxj net.udp.recv], in my experience it work very fine.


Viewing 3 posts - 1 through 3 (of 3 total)