yashsingh1/xdaforums huggingface dataset:
[General Topics] benkxda:
Thread link

[Guide] PHP Development on Android

[IMG="PHP"]http://i.imgur.com/5gxX8rs.png?1[/IMG] [IMG="Plus"]http://i.imgur.com/V4pitwv.png?3[/IMG] [IMG="Android"]http://i.imgur.com/zJUU01k.png?1[/IMG]​

WHAT?

Yes, you can develop with PHP on your Android device, no I am not mad (yet) - not guaranteed for lifetime. This guide is just to help you starting and hopefully kicks off some discussions about this (currently) not very common opportunity.

WHY the heck...?

Well, by now it's just playing with our devices, sure. But let's face it and let's see the potential of an Android device in the future, maybe in only a few years. Do I have to boot my computer or notebook or is it more likely I just wake my smartphone or tablet and give it a power source by placing it in the stand? Either way, it also makes fun playing around by now and using a maybe older device as a low power consuming web app server.

But PHP is ridiculous, scripting for kids, security flaws, inconsistencies, ugly syntax...

PHP is one of the most important scripting languages in the web. It's not perfect, sure, but you can create really big projects like Wordpress and vBulletin and therefore also our beloved XDA. However, this is a thread about how to start PHP developing on an Android device, not about how great or how bad this programming language is.

You have a question? Post it in the thread.

You have improvements? Post it in the thread.

You know better apps? Post it in the thread.

You don't like PHP? Well, move along...

My test set up

Hardware

Android device (Samsung Galaxy S3 LTE GT-I9305, running Android 5.0.2)

Chromecast

FHD TV

USB OTG cable

USB keyboard

Software/Apps

code editor

web server with PHP support

I develop and apply the programs locally, means, code editor and server are on the same device. Uploading or managing files remotely is not not required in this case.

Optional and recommended accessories and apps

Hardware

Bluetooth input devices, so you can charge your device

USB cable to charge your device, you'll need it

alternatively use wireless charging if your device supports it

Software/Apps

DynDNS client

port forwarder (needs root to forward to standard port 80)

SFTP/FTPS server/client

SSH server/client

server monitor

The apps will raise the battery consumption, so for longer development sessions, use Bluetooth keyboards and mice or a BT keyboard with an integrated touchpad. Charge your device.

DynDNS client makes your device available to the internet using a simple subdomain name instead of the ip address. The port forwarder can redirect incoming HTTP requests to port 80 for example. To upload and manage your files from your Android device to a web server from your web hoster, you can use secured FTP (SFTP/FTPS) and SSH clients or use servers, if you upload from an Android to an Android device.
[General Topics] benkxda:
Reserved
[General Topics] benkxda:
Bump... 1 month online and 181 views but no reaction :(

Somewhere a PHP developer... or a somehow interested one in any kind of coding on Android... or at least someone who heard about PHP or Android? :p
[General Topics] atondo27:
Hellow, i have been developing php on my android since 2013

The app that I used was AndroPHP but now is off the playStore

Also i have found an error on the Palapa Web Server on the moto g since it can't install the services and is useless to my client since he is buying moto g as the main device, I have a nexus 6 and an Intel tablet and i dont have this problem

I think i have the apk of AndroPhp somewhere in case someone need it
[General Topics] benkxda:
Thanks for your post. Developing PHP on Android since 2013 is quite a long time, but obviously it was possible. Do you still develop on Android and what's your setup like keyboard, mouse, monitor etc.?

I think I'll just remove the Palapa Web Server, which was removed recently from the Play Store. Can you suggest other code editors or development environments/servers?
[General Topics] ProjectER:
Hi, also noticed that the amazing small and free Androphph is no longer on the playstore. Any ideas as to why it was removed? To be honest that app was rock solid in php/mysql.
[General Topics] atondo27:
I have been strugling with Androphp and Lolipop on the Moto G. Its been like 1 year since it was removed.

you can download the apk from here:

***.apk4fun.com/apps/com.ayansoft.androphp/

www

I'm using that version on some deployments
[Nexus 6 Q&A, Help & Troubleshooting] slammer1:
I screwed up, I wiped my nexus 6 in recovery before I backed up original O.S., now I have no operating software to install. Is there anything I can do, or is it too late????
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
its too late for whatever app and system data you had, but you can always adb push or adb sideload a rom, gapps, and supersu to your phone then flash them.
[Nexus 6 Q&A, Help & Troubleshooting] jongie123:
If you had a unlock bootloader you can fastboot the stock images to you phone to go back to stock.
[Nexus 6 Q&A, Help & Troubleshooting] slammer1:
Ok, so, while in TWRP recovery, how do i do that? I see in Advanced tab there is "ADB Sideload", is that where i start? I did unlock the boot-loader already.
[Nexus 6 Q&A, Help & Troubleshooting] simms22:
google it, youll find instructions.

---------- Post added at 06:41 PM ---------- Previous post was at 06:40 PM ----------

ive never sideloaded anything(just used adb push), but they are similar ideas.
[Nexus 6 Q&A, Help & Troubleshooting] jongie123:
https://www.youtube.com/watch?v=ZNEXCY-wHpw&list=FLnc-CzjhL7xC4l3z7QahZlA
[Nexus 6 Q&A, Help & Troubleshooting] JulesJam:
Does the bootloader have to be unlocked to do this?

Also, for the system partition I think you need mfastboot.
[Nexus 6 Q&A, Help & Troubleshooting] jongie123:
If you want to use the fastboot method yes the bootloader needs to be unlocked.
[Nexus 6 Q&A, Help & Troubleshooting] michmeister:
Use wugs toolkit. You can force flash os
[Nexus 6 Q&A, Help & Troubleshooting] ajjames01:
The easiest thing to do IMO is to flash the stock img in fastboot. Check out this thread.

http://xdaforums.com/showthread.php?t=2954008

[TUTORIAL][GUIDE][HOW TO] Flash Factory Images || Unroot || Relock bootloader
[ONE Q&A, Help & Troubleshooting] Mildromeda:
Hey guys got a kind of quick video of me replacing my OPO battery, YOU don't need to do this is purely just to have it if you do need to and yes after I did it my battery was amazing.

Please please my fellow xda members subscribe and share I will be uploading more and more

https://youtu.be/iWwJOXn0gsM
[ONE Q&A, Help & Troubleshooting] artnada:
You need o redo that video with the tip banner positioned in a different place. Because it covers THREE of the most important bits!
[Galaxy S III Q&A, Help & Troubleshooting] FlyingPotato:
Hello,

Today, I came back home and put my phone on my desk.

I went outside the room for a couple minutes, and when I came back, the phone was turned off.

I thought the battery got emptied, so I plugged the phone to the charger. The phone turned on, but instead of my custom start screen, the default Cyanogenmod screen was up.

Then, I got the "Encryption Unsuccessful" message, saying the only way to recover my phone is to wipe it and hope google backed enough stuff.

Now, I still haven't used the button on the bottom of the screen. I went to the recovery mode, thinking maybe I could back up stuff before I wipe everything.

My question is: Is there a way to restore back my phone without wiping everything? I tried to back everything up to the SD card, but the backup stopped once it reached the /data folder, which I assume, is the source of the problem. Can the problem be solved by formatting the /data folder from the recovery mode? I also currently don't have any clockwork backups, thus I cannot use recovery to restore everything to the way it was.

Please help, I have very important information on my phone and I'd hate to lose it.
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
The data folder is where all your information is stored. There are many threads where people have tried to recover data from a brick, I've not heard a single success.

You could just try flashing the exact same rom you already had, without a wipe. That might cure any system issues but won't help corrupt data.

It sounds like your phone has suffered a partition corruption or failure.
[Galaxy S III Q&A, Help & Troubleshooting] FlyingPotato:
And what could possibly cause that?

As I said, I didn't do anything special or risky to the phone. The Cyanogenmod has been installed on it for a year and a half, so I don't think that's the problem.

Is there a way to extract some folders from the phone? I tried to plug it with a USB to the computer, but aside from the name, all information is unknown.

Also, will flashing the exact same rom will work? And what do you mean by "won't help corrupt data"? How do I know which data is corrupted?

And as I asked, will formatting the /data folder through the recovery mode will work? Can it cause damage?

I'm sorry for asking so many questions, I'm trying to be really careful with that and I need to fully know what I'm doing.

Thank you for replying.
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
Try ADB pull or aroma file manager in recovery, but if data partition is corrupt then your data is already lost.
[Galaxy S III Q&A, Help & Troubleshooting] FlyingPotato:
It says "device not found". does that mean my data is lost?

And can you please answer my other questions?

Thank you for your help.

Edit: In case I do have to reset my phone, can someone guide me how to do it step by step?

I don't want something to mess up and get no help or wait hours for an answer.
[Galaxy S III Q&A, Help & Troubleshooting] boomboomer:
Take it to a service centre and pay them to help you.
[Galaxy S III Q&A, Help & Troubleshooting] FlyingPotato:
okay nvm, I used the button on the bottom and it did the trick.

I should probably start backing up things more often because right now I use a backup from a year ago.

Thank you for your help.
[Blu Vivo Air] Ilxaot:
Recently, I've noticed that the Messaging app will automatically set itself as the default SMS app. I don't like the Messaging app, I don't want to use it. How am I able to stop this from occurring?
[Blu Vivo Air] jjvalor59:
Never happened to me I'm using Google messenger app and works just fine! Might be related to the specific app u r using? Which one?
[Blu Vivo Air] Ilxaot:
Well, that provides me some relief. It's been happening with all of them for the last two weeks. Messenger, invi, Textra, QKSMS, etc. I'll format sometime I guess.
[Blu Vivo Air] itsJohnuno:
For me that only happens on a reboot
[Blu Vivo Air] Grimloe:
This happens to me constantly. I want to use hangouts as my default messaging app, but it randomly (or so it seems) switches back to the stock messaging app. I did notice that when this happens it also switches back to the original lock screen (I use GO Locker now).

I thought about removing the messaging app (my phone is rooted), but I'm not sure how that would affect the phone. I also can't seem to find the app under the list of apps I could uninstall.

Does anyone have any suggestions for me?
[Blu Vivo Air] jordanManfrey:
you could try freezing it with titanium backup
[Blu Vivo Air] Ilxaot:
Don't freeze or remove the stock messaging app. I switched from ART runtime back to Dalvik, after reading that somebody experienced problems upon switching runtimes. Are you by chance on ART?

Edit - I also ought to mention that I haven't had it reset since I made the switch.
[Blu Vivo Air] Grimloe:
Cool, I'm glad I asked before I tried to do so.

As far as I know I am still using Dalvik runtime.
[Blu Vivo Air] Ilxaot:
Switching to ART and then reverting to Dalvik would be my only suggestions then at that point. I hope it's resolved, I've been loving Messenger. [emoji14]
[YU Yureka Q&A, Help & Troubleshooting] schand:
My yureka has no major issues except the random reboots. My yureka restarts automatically 3-4 times a day. It mainly does when its connected to wifi and performing any sudden tasks. This issue persists on my other friends phone also.

Pls suggest me remedies for it or should i return my phone?? Or is it any somekind of mother board issue...!

Plzz help ASAP....! THNX IN ADV
[YU Yureka Q&A, Help & Troubleshooting] thearjunraju:
I also have the same issue may be its the software bug
[YU Yureka Q&A, Help & Troubleshooting] nitin.chobhe:
If a factory reset doesn't solve it, return the device.

I've 2 of these phones and none of them have this (or any other) issue...
[YU Yureka Q&A, Help & Troubleshooting] AbhishekT:
Random reboots lately

I am having similar issues with Yureka lately. I am using this phone for past couple of months but only recently phone restart has started. It happens many times in between the phone call. This makes it very frustrating. I have the lollipop update. I am mostly connected to the wifi at home or at work and haven't verified if this problem is replicable without wifi or not. This is most likely a software glitch unless proven otherwise. Please post here if anyone finds a fix. This is an awesome phone at this price point with very good spec and looks. I would like it to work as intended. I have uninstalled many other cleaning/cooling apps which happen to kill tasks to keep phone performance better. It doesn't seem to help as the phone continues to reboot randomly. I am not willing to do factory reset anytime soon.
[YU Yureka Q&A, Help & Troubleshooting] kleankutrockstar:
Information about the ROM

what rom are you using..?
[YU Yureka Q&A, Help & Troubleshooting] AbhishekT:
cyanogen which comes with YU.
[YU Yureka Q&A, Help & Troubleshooting] sammedkoujalagi:
Random reboots..on snapshot 5.1
[G3 Q&A, Help & Troubleshooting] dipalp95:
Hello, I was trying to go back to stock Kitkat by using the LG flash tool. I ran into a problem where my phone went into Factory Reset Status 2. I'm now trying to follow this guide to completing this. http://xdaforums.com/lg-g3/general/problem-returning-to-stock-try-t2862463

The problem I face now it that my computer won't list the phone under ports. I have downloaded the drivers. (Even re installed a few times) The phone gets listed under "Portable Devices" as LGE Android MTP Device. I need to be able to connect it to COM41 to fix this issue but I'm not sure what to do here. Any help is appreciated.
[G3 Q&A, Help & Troubleshooting] ItsJacobee:
Should be able to just omit that step. When I used the flash tool mine was not listed under under ports when I did.

Should be listed under that after you change the setting.
[G3 Q&A, Help & Troubleshooting] jcfunk:
##diag# ##3424# enable diag port
[Nexus 5 Themes and Apps] JohnMcW:
Click to Download J Blue Ice for CM12 From Play Store

Also Available : J Theme Transmogrifier for CM12 -- Color this theme any color desired

Expand to view more theme pictures

What is Not Themed Yet?

===========================

Anyone who might have tips on the following, please contact me!.

* Teal Blue Account circle on upper right of lock screen & pull down status screen

* Random assigned colors to contacts

* In SMS/MMS - Headers matching random assigned color

* Hangouts - first screen in should have a black background

----other things you would like to see changed, let me know ----

What is Themed?

===========================

Alarms Sound = Smoothin.ogg

BootAnimation Dark Tiger GIF from naghi63

Notification Sound = S_Bubbles.ogg

Ringtone = Godfather.ogg

Framework

Calculator2

Calendar

Camera2

Chrome

Contacts

DeskClock

Dialer

Email

Gallery3d

Keyboard

KeyGuard

Launcher (Trebuchet)

MMS/Phone

Package Installer

Settings

Sound Recorder

SystemUi

Play Store

Eleven (CM Music Player)

FileManger

LockClock

CM Updater

Google Books

Google Plus

Google Translate

Google Keyboard

GMail

Google Music

Hangouts (Talk) (message bubbles)

YouTube

Audio FX

Theme Chooser

Change Log:

03/13/2015 - Calculator Display now Black and widget updated, System Notification bars changed to black on all apps.,

Play Store Search Darkend, Location Sys Bar Icon Colored, Battery on sys status bar circle and Icon colored,

MMS - Compose Background changed to black. (CM 12 3/12/2015 and later)

03/09/2015 - Gmail Compose background changed to black, System navigation buttons themed

03/05/2015 - All App Icons now themed, Gmail compose font darker, phone Icon updated

03/03/2015 - Google Keyboard Themed
[Galaxy S 4 Q&A, Help & Troubleshooting] :
Q&A for i9506 android 5 root

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for i9506 android 5 root. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Galaxy S 4 Q&A, Help & Troubleshooting] :
Just wait for my kernel. It is SELinux Permissive and installs SuperSU by itself, so full root without any restrictions.
[Nexus 6 Themes and Apps] JohnMcW:
Version 1.2.6

**1.2.6** 08/23/2015

------------------- Google Hangouts - Talk - more vers 4 updates

------------------- Root Explorer themed
[ZenFone 2 Android Development] Fire code:
USB Driver

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ASUS_Android_USB_drivers_for_Windows_20150212.zip

ZE550ML ROM

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.9-user.zip.secure

ZE551ML ROM

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.9-user.zip.secure

Kernel source

ZE550ML/ZE551ML

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/zenfone2_2_12_40.zip
[ZenFone 2 Android Development] Mr. Kaz:
Great!! Looking forward for great dev support.. :)
[ZenFone 2 Android Development] piskr:
Links for ZE551ML and ZE550ML ROMs are broken.
[ZenFone 2 Android Development] Fire code:
BACKUP

Quote:

Originally Posted by Fire code

USB Driver

https://drive.google.com/open?id=0B-1_qo5woThsQkNWQnVwZG9CVzA&authuser=0

ZE550ML ROM

N/A(sorry ~i didn't backup this~ )

ZE551ML ROM

https://drive.google.com/open?id=0B-1_qo5woThsTnM3bjQxaHJoUzg&authuser=0

Kernel source

ZE550ML/ZE551ML

http://dlcdnet.asus.com/pub/ASUS/Zen...e2_2_12_40.zip

https://drive.google.com/open?id=0B-1_qo5woThsOHhkTUNEUFItdFU&authuser=0
[ZenFone 2 Android Development] troy5890:
I can't wait tell I get this device. Nothing but good old cyanogenmod and aosp roms.
[ZenFone 2 Android Development] hp420:
Anyone rip any apps out and had success with them running on AOSP yet?
[ZenFone 2 Android Development] xazac:
Do you guys think there will be an Ubuntu Touch edition for the ZenFone 2? It has an Intel CPU, I really wish that.
[ZenFone 2 Android Development] Fire code:
update link

USB Driver:

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ASUS_Android_USB_drivers_for_Windows_20150212.zip

ZE500CL

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/UL-ASUS_Z00D-WW-12.16.4.3-user.zip

ZE550ML

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.11-user.zip

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.9-user.zip

ZE551ML

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.11-user.zip

http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.9-user.zip
[ZenFone 2 Android Development] ThunderSky7:
You can get some ZenFone 2 apps From :-

I have deodexed rom.

and ported some apps and they are working flawlessly on CM11 without any bug.

http://xdaforums.com/android/apps-games/port-asus-zenfone-2-apps-port-root-t3073195#post59906345
[ZenFone 2 Android Development] menbaosusu:
Deodexed rom meaning you have a zenfone 2 stock deodexded rom? Do you have a link to it or the rom is private?
[ZenFone 2 Android Development] SystemErrorOne:
You should add screenshots.. :good:
[ZenFone 2 Android Development] yusoffb01:
thanks for drivers
[ZenFone 2 Android Development] ycavan:
sooo much repo'ing to get AOSP before the compiling even begins. There's gotta be a better way for them to maintain the repository. :/

Edit:

After downloading around 40 gigs of files from AOSP, won't compile on our phones. Looks like build tools are only 64-bit and the Debian Jessie chroot I'm using on the phone isn't allowing the 64-bit tools to execute. Our kernel reports that it IS in fact x86_64, but I can't seem to find the phone's /lib64 directory to map to the chroot. So, something that could be fun is now a huge headache -- may need to put together a pc just to build this kernel & hope I still have enough bandwidth from my ISP to repo another 40 gigs.
[ZenFone 2 Android Development] sorg:
It's already several years ago Android build tools migrated to x64-only. So, you cannot build Android (even 32bit version) on x32 machine.

Zenfone 2 kernel is 64bit. But Android itself is 32bit. You still can start 64bit binaries if you want. I'm using 64bit busybox and some other utilities I've made.

I didn't try to compile Zf2 kernel yet because there is no unlocked bootloader exist, so you simply can't boot your own kernel.
[ZenFone 2 Android Development] ycavan:
I was able to apt-get lib64 on debian jessie ( was called libc6-amd64 ) & that moved things along until the assembler refused to load libz.so. No amount of looking around helped figure that one out since libz.so did exist.

This is just something fun to do while waiting for the unlocked bootloader. :) Wouldn't it be nice to be able to just compile your own kernel on your phone?
[ZenFone 2 Android Development] sorg:
Compilation requires a lot of typing in command line. I cannot imagine doing this on phone. It's simply crazy. I'm not even talking about time needed for compilation.

I'm using PC (with linux VM) to compile everything.
[ZenFone 2 Android Development] cangcan:
[MENTION=334644]sorg[/MENTION]..so currently is there anything that you have produced for zenfone 2? and is it possible for this phone to be developed once asus release and unlock the BL?
[ZenFone 2 Android Development] sorg:
Yes, i've compiled many binaries already.

Of course it's possible to develop for ZF2. There is ASUS Nexsus Player (fugu) device in CM12 repository which is basically very close to ZE550/ZE551. So, there is already a lot of code in Cyanogenmod. But, i prefer stock ROM anyway.
[ZenFone 2 Android Development] Aceofzeroz:
That's good news sorg, great to know you've been getting some code flowing while waiting for the bootloader unlock tool.:cool::thumbup: I'll have to check out your repositories when I get the chance, especially since I wanted the device tree for my rom projects.

Sent from the Ace's MB865 using Tapatalk
[ZenFone 2 Android Development] John Laurinaitis:
edit: nvm :P
[ZenFone 2 Android Development] graffixnyc:
Does anyone have the 2.17.40.12 or newer full package?
[ZenFone 2 Android Development] BOSSPDA:
http://www.asus.com/support/Download/39/1/0/13/Lk0Sg1Ulh0Ph49Hl/32/
[ZenFone 2 Android Development] lilila:
Thanks. Just found the most recent full version.
[ZenFone 2 Android Development] nothing94:
We need a developer
[ZenFone 2 Android Development] Cyborg.Gangster:
What is this ROM? Stock or something ? We Are Already Running the Stock Rom right Why This Again...

Kindly Add Screenshots If Possible..

PS: Noob Here..:p
[ZenFone 2 Android Development] rafyvitto:
This is not a custom rom, the OP is just linking to the first version stock oem rom, unless we get unlock bootloader, we wont have custom roms/kernels/recoverys, until then we are stuck with asus oem roms.
[ZenFone 2 Android Development] Cyborg.Gangster:
First Version Stock Oem ROm means?

Can I have Few SS
[ZenFone 2 Android Development] Ferri64:
Why is this in Original Android Development then?
[ZenFone 2 Android Development] cmendonc2:
I was wondering that as well. Maybe move this thread [MENTION=335322]MikeChannon[/MENTION] to the Android Development Section.

Sent from my ASUS_Z00AD