# Packing php files in apk file export

**URL:** <https://forum.kirupa.com/t/packing-php-files-in-apk-file-export/351950>\
**Category:** flash\
**Created:** [October 23, 2014, 1:34pm UTC](https://forum.kirupa.com/t/packing-php-files-in-apk-file-export/351950 "2014-10-23T13:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![glow](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@glow](https://forum.kirupa.com/u/glow)\
**Post date:** [October 23, 2014, 1:34pm UTC](https://forum.kirupa.com/t/packing-php-files-in-apk-file-export/351950/1 "2014-10-23T13:34:18Z")

</div>

Hi I have successfully been able to package an android app with xml files in flash cc but I’m having trouble getting the php files to work, is there a successful way to do this, do php and javascript files work at all within the apk packaging?

Thanks

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [October 23, 2014, 3:14pm UTC](https://forum.kirupa.com/t/packing-php-files-in-apk-file-export/351950/2 "2014-10-23T15:14:05Z")

</div>

You _might_ be able to get PHP files to run in your AIR app, but it would be exceedingly complicated. There’s this project, [PHP for Android](http://www.phpforandroid.net/), and perhaps you package that into a binary that you include with your APK, and address in Flash via a native extension.

JavaScript is easier, since I assume that you can still use some sort of embedded WebKit in the AIR for Android (via an HTMLLoader).

It’s a bit unusual to try to adapt a Flash+PHP client-server model app onto a phone, to be honest. You’ll likely be forging your own path if you want to avoid rewriting the server logic in AS3.
