简单Python服务器类似于SimpleHTTPServer,但是具有PHP支持吗? [英] Simple python server similar to SimpleHTTPServer but with PHP support?

查看:330
本文介绍了简单Python服务器类似于SimpleHTTPServer,但是具有PHP支持吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想在本地快速,轻松地运行Web应用程序时,使用python -m SimpleHTTPServer.但是,SimpleHTTPServer缺少任何PHP支持(甚至MySQL支持).

I use python -m SimpleHTTPServer when I want to run my web application locally, quickly and without much pain. However, SimpleHTTPServer lacks any PHP support (or even MySQL support).

是否可以做一些类似的事情(最好但不一定与Python有关)来建立一个快速的PHP服务器并运行以进行测试?

Is there something similar I can do (preferably but not necessarily to do with Python) to get a quick PHP server up and running for testing?

推荐答案

WPHP 将允许您运行PHP在一个WSGI容器中,其中有几个独立容器.

WPHP will allow you to run PHP in a WSGI container, of which there are several standalone.

这篇关于简单Python服务器类似于SimpleHTTPServer,但是具有PHP支持吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆