怎么在.htaccess文件中设置php

WBOY
Release: 2016-06-13 13:50:56
Original
858 people have browsed it

如何在.htaccess文件中设置php
如题,我想在.htaccess文件中设置PHP的运行环境,如magic_quotes_gpc

配置语句如下:
php_flag magic_quotes_gpc off
但服务器却返回错误

我的php是以CGI的方式运行的,我需要再PHP的配置文件中设置什么吗?


------解决方案--------------------
这个在apache手册中有介绍的,那是最好的,最全面的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template