Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-28-2003, 08:51 AM   #1
pixelpod
Registered User
 
Join Date: Jul 2003
Posts: 4
Default problem with AMFPHP tutorial

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 :

Code:
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
pixelpod is offline   Reply With Quote
Old 07-29-2003, 12:23 AM   #2
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Can you post the PHP code you tried using, seems like maybe a missing $ sign in PHP or something.
freddycodes is offline   Reply With Quote
Old 12-08-2004, 03:19 AM   #3
jondmac
Registered User
 
Join Date: Oct 2004
Posts: 4
Default

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\Authenticat e.php"
.....level: "Notice"
.....line: 29

when using this toturial: http://www.actionscript.org/tutorial...ng/index.shtml

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

Thanks in advance!
jondmac is offline   Reply With Quote
Old 12-08-2004, 04:16 AM   #4
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

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 ^_^
petefs is offline   Reply With Quote
Old 12-08-2004, 04:42 AM   #5
jondmac
Registered User
 
Join Date: Oct 2004
Posts: 4
Default

what are the precise lines that should be removed, and from what file?



Thanks!
jondmac is offline   Reply With Quote
Old 07-15-2005, 04:55 AM   #6
max.hedroom
Registered User
 
Join Date: Jul 2005
Posts: 1
Default these lines

Remove any lines that say this:
Code:
 "roles" => "role, list",
max.hedroom is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.