是否有用于Android的终端仿真器,允许使用MySQL支持使用VI和PHP? PS。遗憾的是,Termux不允许将PHP连接到MySQL。
是否有用于Android的终端仿真器,允许使用MySQL支持使用VI和PHP? PS。遗憾的是,Termux不允许将PHP连接到MySQL。
Is there a terminal emulator for Android which allows to use vi and php with mysql support? PS. Termux unfortunately doesnxe2x80x99t allow to connect php to the mysql.
迟到了,但是,如果我安装php包:
pkg install php
然后导航到包含我PHP文件的目录, cd storage/<php directory>/
然后我可以用'php'前缀命令。所以,在我的PHP目录中运行一个文件:
php -f php_file.php
"Man'od-" Man Php"中有更多信息。 我使用Droidedit,它运作良好;我没有尝试使用Vim,但我没有看到它不会工作的原因,只要你的当前目录是包含PHP文件的那个。
是你是否可以配置应用程序来使用Lavarel,我很抱歉,但我不知道。
Late to the party, however, if I install the php package:
pkg install php
then navigate to my directory containing my php files,
cd storage/<php directory>/
I can then prefix commands with xe2x80x98phpxe2x80x99. So, to run a file in my php directory:
php -f php_file.php
There is more information in the xe2x80x98manxe2x80x99 doc - xe2x80x9cman phpxe2x80x9d. I use DroidEdit, which works well; I have not tried using vim, but I see no reason why it would not work, so long as your current directory is the one containing the php files.
As to whether you can configure the application to use Lavarel, Ixe2x80x99m sorry, but I do not know.
为了做到这一点,您需要在手机上有su或root,
因为在Android OS中,每个应用程序都在自己的用户下运行,(更不用说selinux),这就是为什么你需要root要手动更改应用程序数据(通常称为"破解" 或"黑客" )。
您可以在获得root后,可以轻松找到要安装的PHP / MySQL二进制文件。
应该在/系统/ bin下移动/ bin
In order to do this you will need to have su or root on your phone,
Because in the Android OS each app runs under its own user, (not to mention selinux) which is why you need root to change a apps data manually (commonly known as "cracking" or "hacking").
You can easily find php/mysql binaries to install after you get root.
Which should be moved under /system/bin
您想要的是终端仿真器。 PHP脚本连接到数据库服务器的方式完全超出了终端的控制。播放商店中有几个"服务器包" 应用程序包括MySQL和SSH等服务。我不能推荐一个特定的,但如果您在播放商店搜索MySQL,您将获得很多结果。
What you want is more than a terminal emulator. The way PHP scripts connect to a database server is entirely outside the control of the terminal. There are a couple of "server pack" apps in the Play Store that include services like MySQL and SSH. I can't recommend a particular one, but if you search for MySQL on Play Store you'll get a lot of results.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有