PDA

View Full Version : cannot echo a string


sideburn
05-30-2005, 05:54 AM
I am having a strange problem with my simple flash examples. They cannot echo a string.

If i try Examples.fla that is part of the amfphp sources in examples/basic or any other example such as talk.fla

everything else works exept for strings:

for example i have an example called EchoTest.

serv.echoString("this is a test"); //this will not return anything to the console.

serv.echoString(12345); //this WILL return 12345 to the console.

Any ideas why?

stackedsax
05-30-2005, 10:20 PM
Check the NetConnection Debugger. I couldn't get anything more than the traces to come up in the Output window when I ran talk.fla, which sounds like your problem.

In the Debugger window, I had some security issue. I'm using the amfphpbeta, and it looks like there's a new directory called 'actions,' with a file called 'SecurityAction.php.' I just commented out the line 59:

//$this->checkRoles();

Which made things work. It also probably makes things less secure, but I'm not quite sure how, so I'm not worrying about it for my application.

If anyone can tell me how to get around this problem with checkRoles, please tell.

-SS

sideburn
05-30-2005, 11:45 PM
i removed php5 and reinstalled os x tiger and then turned on the built in php and now it works