Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

appcelerator mobile app that is developed by php and mysql, is it possible?

I want to know if we can convert our web application to a mobile application using appcelerator

our web application uses a lot of php. we use mysql for our database.

the mobile application will need to be a native mobile app because we plan to use most of the phone's apis. and the mobile app will need to be always online to obtain status updates.

i am confused because appcelerator's development process is just using javascripts to develop the app.

what's your suggestion and comments?

— asked November 10th 2010 by Raymond Ho
  • android
  • iphone
  • mobile
0 Comments

3 Answers

  • double.

    — answered November 10th 2010 by Jeroen Kntl
    permalink
    0 Comments
  • For the mobile app you'd have to rewrite your stuff from PHP to JS and use SQLite instead of MySQL.
    Both things aren't that big of a deal (depending on the size of your web app ;)), the only problem can be when you use specific MySQL functions that are not (directly) available to SQLite.

    — answered November 10th 2010 by Jeroen Kntl
    permalink
    2 Comments
    • what if our database is huge? :(

      — commented November 10th 2010 by Raymond Ho
    • Define huge. The biggest problem with a "huge" database is getting it onto the device. You don't want to prepackage a large database in the resources folder, so you will need to download on first use. That of course runs faster over wifi than over 3G.

      You also want to make sure you download directly to a file and not use a httpclient's responseData property in the onload event. Otherwise "huge" files will cause a memory overflow.

      — commented September 13th 2011 by Doug Handy
  • Yea, you could do it fine. You just have to use webviews instead. You can also load local html files

    — answered November 10th 2010 by Josh Lewis
    permalink
    1 Comment
    • Incorrect - using webview only allows HTML, you'd have to host the PHP remotely as there would be no way of running PHP or MySQL on an iOS or Android device for your app.

      — commented September 13th 2011 by Delete Me
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.