php 我可以在 iPad 2 上编程吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7304984/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I program on iPad 2?
提问by Shinichi
I am a Web development and try to work with iPad 2. Please tell me know may I install: Apache, PHP, MySql on iPad ? or install XMAPP/MAMP Pro on iPad 2 ?
我是一名 Web 开发人员并尝试使用 iPad 2。请告诉我我可以在 iPad 上安装:Apache、PHP、MySql 吗?或在 iPad 2 上安装 XMAPP/MAMP Pro?
If not, which table can do that (not Windows OS) ?
如果没有,哪个表可以做到这一点(不是 Windows 操作系统)?
Thanks so much !
非常感谢 !
回答by kuba
There is an app for the iPad that allows writing and executing code on the Ipad: http://www.becomekodiak.com/
有一个适用于 iPad 的应用程序允许在 Ipad 上编写和执行代码:http: //www.becomekodiak.com/
I am a co-author of this app, so I hope it is okay to mention my own product here. But it seems to be related to the topic.
我是这个应用程序的合著者,所以我希望在这里提到我自己的产品是可以的。但这似乎与主题有关。
回答by ina
1) You can use various text editing tools to write your code on an iPad. Then sync it with your test server.
1) 您可以使用各种文本编辑工具在 iPad 上编写代码。然后将其与您的测试服务器同步。
2) There aren't any such magic packages like XAMPP for iPad that will let you easily install your usual PHP/MySQL Apache LAMP magic easily. Someone has yet to write an app that will let you run a PHP-parsing server on your iPad, although many app's provide local web server's for photo sharing and such usage on iDevice's.
2) 没有像 XAMPP for iPad 这样的魔法包可以让您轻松安装常用的 PHP/MySQL Apache LAMP 魔法。还没有人写出能让你在 iPad 上运行 PHP 解析服务器的应用程序,尽管许多应用程序提供本地网络服务器用于照片共享和 iDevice 上的此类使用。
3) You can also program and "compile on the cloud" on the iPad. The emphasis is on the cloud, but the plus is that you can execute and test your PHP script's right on your iPad (though you will need WiFi or 3G). You can write your own app and set up your own server for that, or you can use one of several existing iPad app's that also do that.
3)您也可以在iPad上编程和“云端编译”。重点是云,但优点是您可以直接在 iPad 上执行和测试 PHP 脚本(尽管您需要 WiFi 或 3G)。您可以编写自己的应用程序并为此设置自己的服务器,或者您可以使用多个现有 iPad 应用程序之一,也可以这样做。
4) If you have remote access to your main coding machine with all that installed, you can also use your iPad to remote access the machine. Keep in mind that this will have the usual virtual terminal lag.
4) 如果您可以远程访问安装了所有内容的主打码机,您还可以使用 iPad 远程访问该机器。请记住,这将具有通常的虚拟终端延迟。
Some useful links:
一些有用的链接:
http://www.macstories.net/ipad/padedit-ipad-optimized-ide-on-your-server/
http://www.macstories.net/ipad/padedit-ipad-optimized-ide-on-your-server/
http://blog.owensperformance.com/2010/03/mides-1-8-release/
http://blog.owensperformance.com/2010/03/mides-1-8-release/
http://itunes.apple.com/us/app/ieditor-all-in-one/id434810905?mt=8
http://itunes.apple.com/us/app/ieditor-all-in-one/id434810905?mt=8
Since I wrote the answer in 2011, there have been several IDEs that actually let you run code locally on iOS, such as:
自从我在 2011 年写下答案以来,已经有几个 IDE 可以让你在 iOS 本地运行代码,例如:
Python for iOS http://pythonforios.com/?
适用于 iOS 的 Python http://pythonforios.com/?
Kodiak for PHP and Javascript http://www.becomekodiak.com/
用于 PHP 和 Javascript 的 Kodiak http://www.becomekodiak.com/
Draftcode PHP http://freeridecoding.com/draftcode/
Draftcode PHP http://freeridecoding.com/draftcode/
Mides PHP http://www.owensperformance.com/mides/
Mides PHP http://www.owensperformance.com/mides/
回答by solesignal
There is now also another alternative App that features offline code execution called DraftCode. It includes PHP 5.4.10 and also supports POST/GET form parsing and all the things that usually are the webserver's responsibility. It also lets you do document interchange with other applications (like DropBox).
现在还有另一个名为 DraftCode 的具有离线代码执行功能的替代应用程序。它包括 PHP 5.4.10 并且还支持 POST/GET 表单解析和所有通常由网络服务器负责的事情。它还允许您与其他应用程序(如 DropBox)进行文档交换。
I have written it because I wanted a more minimalistic alternative to what was available.
我写它是因为我想要一个更简约的替代品。
回答by dispake
I also wanted to do the same since the iPad was great for portability but did not find a whole lot available. Other than what I list below
我也想做同样的事情,因为 iPad 的便携性很好,但没有找到很多可用的。除了我在下面列出的
Web Server:The only possible local server that I've seen so far is http://www.lighttpd.net/but requires jail breaking your iPad.
网络服务器:到目前为止,我见过的唯一可能的本地服务器是http://www.lighttpd.net/,但需要越狱你的 iPad。
Code EditorTextastic http://www.textasticapp.com/is great. It has support for DropBox and FTP and even some basic page previewing. However, it's no where close to a full blown IDE like Eclipse. But it's definitely great for basic updates.
代码编辑器Textastic http://www.textasticapp.com/很棒。它支持 DropBox 和 FTP 甚至一些基本的页面预览。但是,它与 Eclipse 等成熟的 IDE 相去甚远。但这对于基本更新来说绝对是很棒的。
回答by Jay
To do web development, you don't need to install those tools on an iPad. You can develop whatever you want on a seperate development environment (say linux) and access that using the web browser in iPad.
要进行 Web 开发,您无需在 iPad 上安装这些工具。您可以在单独的开发环境(比如 linux)上开发任何您想要的东西,并使用 iPad 中的网络浏览器访问它。
回答by Benjamin Dubois
You can code on the iPad, but I could not find any dev server directly built in an app (as far as I remember, that's because apps that can run code directly within the iPad are not allowed on the iPad). Most code editors provide an FTP or webdav client, but nothing autonomous.
你可以在 iPad 上编码,但我找不到任何直接内置在应用程序中的开发服务器(据我所知,这是因为 iPad 上不允许直接在 iPad 上运行代码的应用程序)。大多数代码编辑器提供 FTP 或 webdav 客户端,但没有任何自主性。
I don't know android as well as iOS, but projects exist, like this one :
我不知道 android 和 iOS,但存在项目,像这样一个:
Maybe you should give a look.
也许你应该看看。
Hope that helps !
希望有帮助!
Benjamin
本杰明