+ 1

Will PHP code work in offline(I mean will it work without putting it in a server)?

Just asking :-)

18th Jun 2018, 12:28 PM
Micole Draco Martinez Beltran
Micole Draco Martinez Beltran - avatar
6 Réponses
+ 6
Hello, Micole Draco Martinez Beltran ! Yes, of course you can. But only in the console. Please see http://www.php.net/manual/ru/features.commandline.php
18th Jun 2018, 12:54 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
Micole Draco Martinez Beltran If you don't have root, I don't think you will have a global CLI (command line interface), but you can have a local one (in the context of the Android app). * Termux has PHP 7 via "apt get". Does not require root, but requires an arm CPU supporting NEON instructions. * Linux Deploy is whatever version of Linux you want (so whatever you can install from the repositories will run on Android), but it definitely requires root.
18th Jun 2018, 5:11 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
How about in android? Will it work?
18th Jun 2018, 12:56 PM
Micole Draco Martinez Beltran
Micole Draco Martinez Beltran - avatar
+ 1
I only try it in android Alexander Sokolov
18th Jun 2018, 1:00 PM
Micole Draco Martinez Beltran
Micole Draco Martinez Beltran - avatar
+ 1
(TL;DR: Yes, probably, it's built for ICS and up, but your kernel version may be too old for newer Linuxes) Directly from the Gradle build file, with references: https://github.com/meefik/linuxdeploy/blob/master/app/build.gradle Line 9: minSdkVersion 14 Line 10: targetSdkVersion 26 The "minimum SDK version" refers to the minimum API + Software Development Kit for which the project is built: https://developer.android.com/about/dashboards Scroll down to "Platform Versions" Version now CodeName API (this ver) 4.0.3 - 4.0.4 Ice Cream Sandwich 15 Tap the version number to see more about ICS, like where the API started (version 4.0.0): https://developer.android.com/about/versions/android-4.0 API Level: 14 So, yes, probably. It's built to work on ICS and above. NOTE: Your kernel version (in your mobile's ABOUT section) may be too old to run much other than Ubuntu though; that's a distro limitation, not Linux Deploy.
18th Jun 2018, 9:47 PM
Kirk Schafer
Kirk Schafer - avatar
0
Will Linux Deploy run in Android 4.0(Icecream Sandwich)?Kirk Schafer
18th Jun 2018, 9:05 PM
Micole Draco Martinez Beltran
Micole Draco Martinez Beltran - avatar