Welcome, Guest
  • Author Topic: Newbie AMFPHP Hello World Help  (Read 2088 times)

    Adam Bell

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Newbie AMFPHP Hello World Help
    « on: 07/25/04, 14:11 »
    I just got AMFPHP installed on my hosts' server and so I figured I'd try doing something with the basic Hello World sample here on Flash-DB. So I downloaded the files, and uploaded them onto the server after I created a .swf and .html file as well. Followed the instructions to the letter but when I tested it, nothing worked. No Hello World.

    Now, being a total newbie to this, I was wondering if I needed to change this code in the hello.fla file:

    NetServices.setDefaultGatewayUrl("http://localhost/Hello/gateway.php");

    to

    NetServices.setDefaultGatewayUrl("http://www.localhost.com/Hello/gateway.php");

    or the IP Address, which I don't know yet. Since all the examples I see on remoting use localhost, I wondered if maybe that's where I went wrong. Is it?


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re:Newbie AMFPHP Hello World Help
    « Reply #1 on: 07/25/04, 14:52 »
    You need to change to the domain of your server. I.e if your server have a domain "myDomain.com", and your movie is in the folder "myFolder", you should do:

    NetServices.setDefaultGatewayUrl("http://www.myDomain.com/myFolder/gateway.php");

    Also you need to change gateway.php accordingly to your folder structure and where flashservices and services folder are.

    Jorge

    Adam Bell

    • Server what's that
    • *
    • Posts: 3
      • View Profile
      • Email
    Re:Newbie AMFPHP Hello World Help
    « Reply #2 on: 07/25/04, 17:52 »
    Hey, that worked Jorge! Thanks a lot for your assistance.