Forums > Jitter

jit.uldl and PHP queries on a MAC

April 17, 2007 | 11:16 pm

Hi,

I need urgent assistance for a problem I encountered with a thesis project due in two weeks.

I have a patch using jit.uldl to query a php script. This php script transmits variables from MAX to my database via $_SESSION variables. The main problem is (on my MAC): it calls the php script and carries out the code, EXCEPT for the part of the code that creates the $_SESSION variables.

What is very puzzling is that I took the same MAX patch to my PC and it works with no problem. When the php script is called, _SESSION variables are created as well, and my database is populated accordingly.

But, I need to present using my MAC powerbook which has everything else I need for this entire project to work.

I thought MAX/MSP is cross platform. I have version 4.5

Thanks for any advice.


April 18, 2007 | 10:53 am

Hello,

I’m using the $_GET array ($_GET['clientid'] in you case for example)
in my php scripts with the same kind of request, no problems.

Bertrand

http://www.bertrandgondouin.net

2007/4/18, Pinky :
> Hi,
>
> I need urgent assistance for a problem I encountered with a thesis project due in two weeks.
>
> I have a patch using jit.uldl to query a php script. This php script transmits variables from MAX to my database via $_SESSION variables. The main problem is (on my MAC): it calls the php script and carries out the code, EXCEPT for the part of the code that creates the $_SESSION variables.
>
> What is very puzzling is that I took the same MAX patch to my PC and it works with no problem. When the php script is called, _SESSION variables are created as well, and my database is populated accordingly.
>
> But, I need to present using my MAC powerbook which has everything else I need for this entire project to work.
>
> I thought MAX/MSP is cross platform. I have version 4.5
>
> Thanks for any advice.
>
>
>
>


April 18, 2007 | 5:02 pm

Hi,

I also use the $_GET array as well and did not have problems with that part of the code. The only problem I continue to have was the php script creating the $_SESSION variables when called from MAX (in a MAC). Outside Mac-version MAX, the php script works well (both when called through a browser or through Windows version of MAX/MSP/Jitter).

It’s been frustrating. I have tried creating just a tiny max patch that calls a very simple php script that creates _SESSIOn variables. IT doesn’t happen.


April 19, 2007 | 1:31 pm

MaxMSP is cross-platform, but OSX and Windows aren’t identical, and
their support for network communication differs in several points. I
don’t have a particularly thorough background in either sql or php
and can’t offer much help, other than to say: regrettably, if it
doesn’t work today, it’s not going to work in 2 weeks either, and you
should consider an alternative presentation machine.

jit.uldl for Mac will be completely rewritten using more modern
libraries from Apple at some point. It’s not going to be in the next
couple of weeks, though.

jb

Am 17.04.2007 um 19:16 schrieb Pinky:

> Hi,
>
> I need urgent assistance for a problem I encountered with a thesis
> project due in two weeks.
>
> I have a patch using jit.uldl to query a php script. This php
> script transmits variables from MAX to my database via $_SESSION
> variables. The main problem is (on my MAC): it calls the php
> script and carries out the code, EXCEPT for the part of the code
> that creates the $_SESSION variables.
>
> What is very puzzling is that I took the same MAX patch to my PC
> and it works with no problem. When the php script is called,
> _SESSION variables are created as well, and my database is
> populated accordingly.
>
> But, I need to present using my MAC powerbook which has everything
> else I need for this entire project to work.
>
> I thought MAX/MSP is cross platform. I have version 4.5
>
> Thanks for any advice.
>


April 19, 2007 | 2:38 pm

When/if it’s re-written, can it be multi-threaded so that it doesn’t
freeze max whilst uploading/downloading?

Don’t get me wrong, that’s not a criticism, just a feature request.

cheers
evan

On Apr 19, 2007, at 2:31 PM, Jeremy Bernstein wrote:

> MaxMSP is cross-platform, but OSX and Windows aren’t identical, and
> their support for network communication differs in several points.
> I don’t have a particularly thorough background in either sql or
> php and can’t offer much help, other than to say: regrettably, if
> it doesn’t work today, it’s not going to work in 2 weeks either,
> and you should consider an alternative presentation machine.
>
> jit.uldl for Mac will be completely rewritten using more modern
> libraries from Apple at some point. It’s not going to be in the
> next couple of weeks, though.
>
> jb
>
> Am 17.04.2007 um 19:16 schrieb Pinky:
>
>> Hi,
>>
>> I need urgent assistance for a problem I encountered with a thesis
>> project due in two weeks.
>>
>> I have a patch using jit.uldl to query a php script. This php
>> script transmits variables from MAX to my database via $_SESSION
>> variables. The main problem is (on my MAC): it calls the php
>> script and carries out the code, EXCEPT for the part of the code
>> that creates the $_SESSION variables.
>>
>> What is very puzzling is that I took the same MAX patch to my PC
>> and it works with no problem. When the php script is called,
>> _SESSION variables are created as well, and my database is
>> populated accordingly.
>>
>> But, I need to present using my MAC powerbook which has everything
>> else I need for this entire project to work.
>>
>> I thought MAX/MSP is cross platform. I have version 4.5
>>
>> Thanks for any advice.
>>

>


April 19, 2007 | 11:57 pm

This is very sad news. I was hoping it was me. Thanks very much. I got the closure that I needed.


April 22, 2007 | 5:46 pm

don’t session variables have something to do with how php is initialized on the server machine?
look at your phpinfo() output and see if session support is enabled. or at least see what settings are different between php on the mac and the pc.

these can be changed by modifying the php.ini file (i think).

-rob


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