如何使用一个 php 脚本处理所有请求? [英] How to process all requests with one php script?

查看:29
本文介绍了如何使用一个 php 脚本处理所有请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 apache2 通过一个脚本处理所有请求?如果可能,不使用模组.

How to process with apache2 all requests by one script? Without mods if it is possible.

推荐答案

我已经用 DocumentRoot 做到了:

I've did it with DocumentRoot:

DocumentRoot *site*/index.php

它产生警告,但它正在工作:

It generates warning, but it's working:

Warning: DocumentRoot [*site*/index.php] does not exist

这篇关于如何使用一个 php 脚本处理所有请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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