| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2003
Posts: 5
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2003
Posts: 5
|
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 |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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:
__________________
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. |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Mar 2003
Posts: 5
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|