0 Replies Latest reply on Jul 11, 2011 11:19 AM by EnstromITdept

    Error on trying to connect to php file at runtime

    EnstromITdept

      Hi everyone,

           I dont know if this is the right place for this. But when I go to debug/build my Flash builder app and run it, it starts up and runs fine untill I do a call to a php function. My apache comes back with all kinds of errors:

       

      The Apache Error log has the following errors associated with this problem:

      [Mon Jul 11 11:48:29 2011] [error] [client 127.0.0.1] PHP Fatal error:  Uncaught exception 'Zend_Amf_Exception' with message 'Unsupported type marker: 15' in E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Parse\\Amf3\\Deserializer.php:111\nStack trace:\n#0 E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Parse\\Amf3\\Deserializer.php(382): Zend_Amf_Parse_Amf3_Deserializer->readTypeMarker()\n#1 E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Parse\\Amf3\\Deserializer.php(103): Zend_Amf_Parse_Amf3_Deserializer->readObject()\n#2 E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Parse\\Amf3\\Deserializer.php(382): Zend_Amf_Parse_Amf3_Deserializer->readTypeMarker()\n#3 E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Parse\\Amf3\\Deserializer.php(103): Zend_A in E:\\AdobeFlex\\New Folder\\.metadata\\.plugins\\org.zend.php.framework.resource\\resources\\ZendFramework-1\ \library\\Zend\\Amf\\Request.php on line 176, referer: http://localhost/SchoolIDservice/public/bin-debug/SchoolIdServices.swf

       

       

      I have tried both wamp and zend server.

       

      My Php string I am attempting to run:

      <?php

      public function loginTest($enteredUID,$enteredUPWD) {

          $connect=mysql_connect('localhost','localhost','');
          mysql_select_db("schoolidpreviewer");
          $result = mysql_query("SELECT passwd FROM schoolinfotable WHERE login = '".$enteredUID."'") or die(mysql_error()); 
          $returnResult = mysql_fetch_row($result);
          if ($returnResult[0] == $enteredUPWD)
          {
              return "true";
          }
          else
          {
              return "false";
          }
        }

      ?>

      here are the sections of my AS file:

       

                  protected function loginButton_clickHandler(event:MouseEvent):void
                  {
                     
                      if (userNameInput.text == "AndyTesting")
                      {
                          setCurrentState("Main",true);
                          Alert.show("entering Testing Status");
                      }
                      else
                      {
                         
                          loginTestResult.token = data.loginTest(userNameInput, passwordInput);
                         
                      }
                  }

                  protected function loginTestResult_resultHandler(event:ResultEvent):void
                  {
                      if (event.result == true)
                      {
                          setCurrentState("Main",true);
                      }
                      else if (!loginTestResult.lastResult == true)
                      {
                          Alert.show("Incorrect Password, Please Retry", "Error");
                      }
                     
                  }

       

       

      <fx:Declarations>

      <s:CallResponder id="loginTestResult" result="loginTestResult_resultHandler(event)"/>

      <data:Data id="data"
                         fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail + '\n' + event.fault.rootCause)"
                         showBusyCursor="true"/>

      </fx:declarations>

       

       

       

      Thanks