By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,727 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,727 IT Pros & Developers. It's quick & easy.

magic_quotes_gpc woes

P: n/a
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.

Jul 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
php_value magic_quotes_gpc 1 in your apache config.

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.

Jul 11 '07 #2

P: n/a
On Jul 11, 2:02 am, petersprc <peters...@gmail.comwrote:
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.

Jul 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.