1 person found this helpful
Upload your services to a directory on your host, upload your remoting app (Zend AMF etc) and configure it, then change the end point in your code to the gateway.php on your server:
yourService.endpoint = "http://www.yoururl.com/pathway-to-your/gateway.php";
For instance, one of mine are:
protected function updateButton_Click(event:MouseEvent):void
// TODO Auto-generated method stub
support_Requests.ticket_id = supportGrid.selectedItem.ticket_id;
support_Requests.hub = supportGrid.selectedItem.hub;
support_Requests.username = supportGrid.selectedItem.username;
support_Requests.contactNumber = supportGrid.selectedItem.contactNumber;
support_Requests.email = supportGrid.selectedItem.email;
support_Requests.request = supportGrid.selectedItem.request;
support_Requests.status = statusButtons.selectedValue.toString();
support_Requests.note = noteUpdate.text;
supportRequestsService.endpoint = "http://www.not-telling-you-my-url/app-resources/gateway.php";
updateSupport_RequestsResult.token = supportRequestsService.updateSupport_Requests(support_Requests);
Thanks for the help Jason.
I think I need to step back a little bit and explain my situation better.
I'm trying to connect my Project to a MySQL database via AMFPHP 2.0 via the data connection wizard. Both the database and PHP are hosted on a remote server.
One of the first steps is to configure your server, you can get to the screen by going to Project > Properties > Choose Flex Server on the left-hand menu.
Application server type = PHP
Now it wants a Web root URL (local files I assume because of the browse button)
and Root URL (and the example is just "http://localhost")
I've tried entering both a local and relative to web server Web Root and a handful of variations on the Root URL to get it to look at my site.
Whenever I click Validate Configuration it errors with: "Cannot access the web server. The server may not be r...g, or the web root folder or root URL may be invalid."
I can actually move past this screen, but trying to use the data connect wizard gives me errors about not having a gateway.php in the bin-debug folder, but it's there, both locally and on the remote.