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 03-25-2003, 11:04 PM   #1
jbh
Registered User
 
Join Date: Mar 2003
Posts: 5
Default Include errors with AMFPHP

Hi everyone.

Like other here I am keen to get the hang of Flassh remoting using PHP. It looks great.

I've had my first stab at Jesse's tutorial tonight. The explanation is very clear but I can't get the gateway.php file set up to include the other .php files.

I've tried relative addresses, absolute addresses for all the files that need including but keep getting the same error message.

Have any of you had this problem? Any ideas on how to correct it?

Jim
jbh is offline   Reply With Quote
Old 03-25-2003, 11:43 PM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

What error message are you getting exactly?
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 03-26-2003, 12:06 AM   #3
jbh
Registered User
 
Join Date: Mar 2003
Posts: 5
Default

Hi Jesse

I'm using Windows2000, with IIS5.0, PHP4 and the latest flash remoting components from macromedia.

I've commented out:
//if(!defined("AMFPHP_INCLUDE_PATH")) {
//define("AMFPHP_INCLUDE_PATH","");
//}

and changed

require_once(AMFPHP_INCLUDE_PATH."flashservices/io/AMFInputStream.php");

to

require_once("../io/AMFInputStream.php");

in an attempt to get the simple relative address to work.

The error message is: Fatal error: Failed opening required '../io/AMFInputStream.php' (include_path='.;c:\php\includes') in c:\inetpub\wwwroot\flashservices\app\gateway.php on line 27

I've moved the file around and tried different addresses with the same error.

What I don't understand is - the relative address from simple_gateway.php to include gateway.php works fine.
include "../flashservices/app/gateway.php";

I've had success by copying all the flashservices files into the same directory as gateway.php and using

require_once("Executive.php"); etc as the address.

Any ideas?

Jim
jbh is offline   Reply With Quote
Old 03-26-2003, 12:14 AM   #4
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

The include methods have changed since 0.5beta. I set them up yesterday and experienced the same problems. You have to use the "define" command in the gateway which you call the other gateway from to set the path... ahh it's on my laptop which I haven't got handy at the moment but it goes something like this:
PHP Code:
define("AMFPHP_INCLUDE_PATH","/flashservices/")
    include 
"flashservices/app/Gateway.php";
    
    
$gateway = new Gateway();
    
$gateway->setBaseClassPath("services/");
    
$gateway->service(); 
The anonying thing about these sorts of setups is they are system specific... but that's how I got it working. By defining the include path in my gateway implimentaiton. Note that my tutorial needs updating to encompass there new features. It will be remade by early next week, once I've had a chance to learn more about the changes.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 03-26-2003, 12:16 AM   #5
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

Also see "example 3" in the README which ships with the package
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 03-26-2003, 12:22 AM   #6
jbh
Registered User
 
Join Date: Mar 2003
Posts: 5
Default

Sorry if I wasn't clear.

I do not have a problem with the 'include' in the simple_gateway.php

It is with the 'include' statements in the gateway.php form AMFPHP implementation.

Jim
jbh 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:09 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.