我正在制作一个网站,允许人们上传文件,html页面,等等。现在我遇到了一个问题。我有一个这样的目录结构:
-/USERS
-/DEMO1
-/DEMO2
-/DEMO3
-/etc... (every user has his own direcory here)
-index.php
-control_panel.php
-.htaccess
现在我想禁用PHP,但在/USERS内的目录和子目录中启用服务器端包含
这能做到吗(以及如何做到)?提前谢谢。
顺便说一下,我用的是WAMP服务器
发布于 2009-08-13 13:46:38
尝试禁用.htaccess文件中的engine
option:
php_flag engine off
发布于 2014-02-19 06:02:39
<Directory /your/directorypath/>
php_admin_value engine Off
</Directory>
https://stackoverflow.com/questions/1271899
复制相似问题