Groups | Blog | Home
all groups > macromedia flash flash remoting > march 2005 >

macromedia flash flash remoting : Installing AMFPHP


jhutchdublin
3/18/2005 8:32:09 AM
When trying to install AMFPHP, I can't get it to work for some reason. I have
installed it using the following file, which I got from the AMFPHP site
tutorial. <?php include ('../flashservices/app/Gateway.php');
$gateway = new Gateway (); $gateway ->setBaseClassPath
('services/'); $gateway ->service(); ?> However, when I try to
run it on my XP Pro machine through IIS with PHP 4 installed I get the
following message in my browser. Can anyone help me get this installed.
Warning: main(/path/to/your/flashservices/app/Gateway.php): failed to open
stream: No such file or directory in
c:\inetpub\wwwroot\flashservices\gateway.php on line 2 Warning: main(): Failed
opening '/path/to/your/flashservices/app/Gateway.php' for inclusion
(include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\flashservices\gateway.php
on line 2 Fatal error: Cannot instantiate non-existent class: gateway in
c:\inetpub\wwwroot\flashservices\gateway.php on line 3 I have Flash Remoting,
Flash Remopting Components and ColdFusion also set up. I read somewhere that CF
may be stealing my remoting for Flash. Please help.
Jostein Eikanger
3/22/2005 12:41:28 PM
Hello!
I got a similar error message, and changed the path strings to:

include_once('../../flashservices/app/Gateway.php');
$gateway->setBaseClassPath('../../flashservices/services/');

That did the trick for me :)
tribalab
3/23/2005 6:57:21 AM
I'm having the same issue and that change isn't working.
What might I be missing?

Thanks,
jhutchdublin
3/23/2005 7:35:05 AM
Hi, I've managed to solve this problem. It Jostein seemed to find it's a file
pathway thing. Arron make sure your file stucture is set up correctly. In the
case aboveyou have to go to levels. In my case, you have to go up one level.
Check to see what level you starting from. The ../ means move up a folder and
you'll find a file called flashservices the ../../ means move up two folders
and you find a folder called flashservices. This is really just trying to
figure out where you're starting from. Once you have that the pathway should
work. You could try removing the ../ from the pathway address and see if that
works as well.
AddThis Social Bookmark Button