title: deploying flex/php application on server - channel disconnected
body: <p>I have a flex application that uses PHP to access a database (MySQL, stored on an external server).</p>
  
  <p>The application compiles fine on my local machine (mac) using flash builder 4, and it can connect to the database using PHP.  (I'm using MAMP to run this.)  It has to install the ZendFramework into my web root to successfully work.</p>
  
  <p>However, when I go to deploy the application onto my server, I run into problems.  I tried copying the ZendFramework files to my server's web root, and I changed the config file (<code>amf_config.ini</code>) to correspond to my server's absolute path to webroot.  I also copied all of the project files to the server.  However, the flash app bombs out when I open it in a browser, saying "channel disconnected: channel disconnected before an acknowledgment was received".</p>
  
  <p>Googling suggests there is a problem in PHP.  I'm assuming this has something to do with the binary being compiled on the local machine... is there a way to compile the app on the server?  (I can't use flex builder on the server, because (among other things) I don't have a GUI, just command-line.)  How do people normally deploy flex apps that have various library dependencies that might be local to the machine?</p>
  
  <p>TIA</p>