Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:24:23+00:00 2026-06-03T08:24:23+00:00

So im building an application for android and iphone and im almost done so

  • 0

So im building an application for android and iphone and im almost done so i decided to start testing on a remote server. However when i change the parameters for the remote server I get a 404 error for the gateway.php file. The path is correct and the file present in the server. I followed this method:

  1. Changed the parameters on the service files to match the server
  2. Changed the webroot on the amf_config.ini file to /home/myuser/public_html/
  3. Edited tha MarkersService.as (the file that extends the super class of the services) and added this _serviceControl.endpoint = “http://www.chania***.com/Chania/gateway.php”;
  4. Uploaded the .swf file

When testing i get the error. If i change the endpoint to my localhost everything works fine. Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:24:25+00:00Added an answer on June 3, 2026 at 8:24 am

    So after a lot of researching and testing i found what you have to do to deploy a mobile app which uses php services on a server. As there is no guide on the internet on how exactly to do this im presenting the steps bellow.

    1. Upload ZendFramework folder from your local server to the root of your server (mine was public_html)
    2. Upload your project folder (most likely the debug folder) on root (ex. /myproject). On this folder you need to have your services folder (/myproject/services) , the amf_config.ini file and the gateway.php file.
    3. Here is the most likely to cause problem part. You will have to edit amf_config.ini and add the webroot=absolute path and the zend_path=absolute path of zend library
      on my project these were “webroot=/home/username/public_html/ and zend_path=/home/username/public_html/ZendFramework/library/”. you should also make sure that at the end of the file the following exists

      [zendamf]
      amf.production=true amf.directories[] myproject/services

    4. Finaly you will have to find the myservice.as file in your project and after the initialization add the following line and compile

      super._serviceControl.endpoint=”http://www.mydomain.com/myproject/gateway.php”

    If you follow the above steps your mobile app should be able to get it’s data from a remote server on both testing and deployment.

    I hope that i helped some people out especially new developers on flex mobile

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering building an application for Windows Phone 7, Android, iphone, ipad, and potentially
Im building an Android application in eclipse and i get the error: constructor Vibrator()
I'm building an iPhone/Android mobile application that is supposed to be a mobile version
I'm building a web application targeting mobile devices (specifically iPhone and Android). I'm building
I am building an Android application that will send reports to a server. These
I am building an Android application which has a server that listens to multiple
I'm building the android application but I'm fed up while I'm designing my app
I'm building an Android application that's based around an enhanced WebView (based on PhoneGap).
I'm building an android application, which has a list view, and in the list
I am building a application for the Android platform and I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.