PDA

View Full Version : problem with AMFPHP tutorial


pixelpod
07-28-2003, 07:51 AM
HI guys,

I've installed PHP and mySQL and PHPMyAdmin, plus the most up-to-date remoting components.

I'm trying to follow along with the tutorial provided here but I'm coming up against a problem which I don't think has to do with remoting.

If anyone could help I'd really appreciate it :

When I test the gateway.php for Flashservices everything seems fine. When I tes the talk.fla I get the calls being made to AMFPHP but nothing gets sent back. Instead of an error in the Netservices debugger I get the following :


DebugId: 2
EventType: "Status"
MovieUrl: "file:///C|/Inetpub/wwwroot/php_remoting/talk.swf"
Protocol: "http"
Source: "Client"
Time: 1059391274593
Date (object #1)
....."Mon Jul 28 12:21:14 GMT+0100 2003"
Status (object #2)
.....code: 8
.....description: "Undefined variable: _SESSION"
.....details: "c:\inetpub\wwwroot\flashservices\util\Authenticate .php"
.....level: "Notice"
.....line: 29


Please could someone expalin to me why I have an undefined _SESSION varible and what I can do to remedy this.


Thanks in advance - great tutorial -,

pixelpod

freddycodes
07-28-2003, 11:23 PM
Can you post the PHP code you tried using, seems like maybe a missing $ sign in PHP or something.

jondmac
12-08-2004, 02:19 AM
I have the exact same problem, and get the exact same in flash:
DebugId: 2
EventType: "Status"
MovieUrl: "file:///C|/Inetpub/wwwroot/php_remoting/talk.swf"
Protocol: "http"
Source: "Client"
Time: 1059391274593
Date (object #1)
....."Mon Jul 28 12:21:14 GMT+0100 2003"
Status (object #2)
.....code: 8
.....description: "Undefined variable: _SESSION"
.....details: "c:\inetpub\wwwroot\flashservices\util\Authenticate .php"
.....level: "Notice"
.....line: 29

when using this toturial: http://www.actionscript.org/tutorials/intermediate/PHP_Remoting/index.shtml

Please someone reply, caus ive had this problem from the start, and cant get it to work (for a month now).

Thanks in advance!

petefs
12-08-2004, 03:16 AM
This has been covered a few times : ) Maybe the tutorial should be updated ^_^

When that tutorial was made, AMFPHP did not properly implement roles and so the setCredentials() method wasn't required to work with that entry.

If you remove the 'roles' from the methodTable in the php class you should be fine ^_^

jondmac
12-08-2004, 03:42 AM
what are the precise lines that should be removed, and from what file?



Thanks!

max.hedroom
07-15-2005, 03:55 AM
Remove any lines that say this:

"roles" => "role, list",