magic_quotes_gpc woes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hermanh128@gmail.com

    #1

    magic_quotes_gpc woes

    I have a webserver hosting several websites running several php
    programs. Some but not all programs check magic_quotes_gp c is ON
    before using the addslashes function. Currently, magic_quotes_gp c is
    OFF

    I have another great program I like to use but it needs to have
    magic_quotes_gp c ON. Is there a way to make magic_quotes_gp c On for
    just this one website? I really don't want to modify the codes of this
    program.

  • petersprc

    #2
    Re: magic_quotes_gp c woes

    php_value magic_quotes_gp c 1 in your apache config.

    On Jul 10, 5:35 pm, hermanh...@gmai l.com wrote:
    I have a webserver hosting several websites running several php
    programs. Some but not all programs check magic_quotes_gp c is ON
    before using the addslashes function. Currently, magic_quotes_gp c is
    OFF
    >
    I have another great program I like to use but it needs to have
    magic_quotes_gp c ON. Is there a way to make magic_quotes_gp c On for
    just this one website? I really don't want to modify the codes of this
    program.

    Comment

    • ZeldorBlat

      #3
      Re: magic_quotes_gp c woes

      On Jul 11, 2:02 am, petersprc <peters...@gmai l.comwrote:
      On Jul 10, 5:35 pm, hermanh...@gmai l.com wrote:
      >
      I have a webserver hosting several websites running several php
      programs. Some but not all programs check magic_quotes_gp c is ON
      before using the addslashes function. Currently, magic_quotes_gp c is
      OFF
      >
      I have another great program I like to use but it needs to have
      magic_quotes_gp c ON. Is there a way to make magic_quotes_gp c On for
      just this one website? I really don't want to modify the codes of this
      program.
      php_value magic_quotes_gp c 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.

      Comment

      Working...