Welcome, Guest
  • Author Topic: Tutorial Code Error  (Read 1822 times)

    CK1

    • Server what's that
    • *
    • Posts: 6
      • View Profile
      • Email
    Tutorial Code Error
    « on: 04/29/07, 08:48 »
    The following code returns an error in the amfphp service borwser. "Unexpected '(' on line 11",

    Code: [Select]
    <?php
    class HelloWorld{
    function HelloWorld(){
    $this->methodTable = array(
    "makeEcho" => array(
    "description" => "Echos the passed argument back to Flash (no need to set the return type)",
    "access" => "remote",
    "arguments" => array ("msg"),
    "returntype" => "string"
    )
    );
    }
    /**
    * Echos the passed argument back to Flash
    * @returns String
    * @access remote 
    */
    function makeEcho($msg){
    return $msg;
    }
    }
    ?>


    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Tutorial Code Error
    « Reply #1 on: 04/29/07, 12:53 »
    The code is OK and works perfectly.

    You must have an error elsewhere.

    What exactly is the errormessage?
    happy flashing
    8)
    Ronald