-
30 Nov 2012 5:23 AM #1
Answered: Native Android Packaging With PHP Files
Answered: Native Android Packaging With PHP Files
I am curious to know how does packaging an application that uses back-end code works? I am currently developing an application that uses PHP to interact with a mysql database. Can such an application be packaged?
-
Best Answer Posted by mitchellsimoens
PHP won't work because you won't have a web server to execute the PHP. You would have to send a call to a remote PHP file.
-
2 Dec 2012 7:47 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
PHP won't work because you won't have a web server to execute the PHP. You would have to send a call to a remote PHP file.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
11 Feb 2013 1:10 PM #3
How exactly would one go by 'sending a call to a remote PHP file'? :-)
-
12 Feb 2013 7:13 AM #4
i'm asking to me the same question
How exactly would one go by 'sending a call to a remote PHP file'? :-)
It means that whe have to put all the PHP url's in absolute mode: http://domain.com/any.php ??-------------------
Manel Juàrez
-
19 Feb 2013 4:22 AM #5
Native Android Packaging With PHP Files
Native Android Packaging With PHP Files
Yes, the url has to be an absolute path to the server and you will likely have to use JSONP request to fetch data across domain. I have done it before and it has worked so it is possible.
-
19 Feb 2013 5:06 AM #6
You can use JsonP or Ajax with CORS support. JsonP can only do HTTP GET, whereas CORS can handle any HTTP method.
- Eranga
-
19 Feb 2013 6:36 AM #7
"burrellramone" or "udesh", do you have a little example about this ?
thanks-------------------
Manel Juàrez


Reply With Quote