|
Posted by ZeldorBlat on 07/11/07 12:55
On Jul 11, 2:02 am, petersprc <peters...@gmail.com> wrote:
> On Jul 10, 5:35 pm, hermanh...@gmail.com wrote:
>
> > I have a webserver hosting several websites running several php
> > programs. Some but not all programs check magic_quotes_gpc is ON
> > before using the addslashes function. Currently, magic_quotes_gpc is
> > OFF
>
> > I have another great program I like to use but it needs to have
> > magic_quotes_gpc ON. Is there a way to make magic_quotes_gpc On for
> > just this one website? I really don't want to modify the codes of this
> > program.
> php_value magic_quotes_gpc 1 in your apache config.
>
(Top-posting fixed)
As peter pointed out you can put something in your Apache config file
-- so you can set magic quotes on per-directory or per-vhost basis.
You could also put that same directive in an .htaccess if Apache is
configured to allow it.
Navigation:
[Reply to this message]
|