Forums

Magic quotes won't turn off in WordPress (4 posts)

  1. matthewpaul
    Member
    Posted 3 years ago #

    I set 'magic_quotes_gpc = Off' in the php.ini file on my server. For all of my non-WordPress sites, magic quotes are turned off correctly. I also checked the PHP settings on my server to verify that magic quotes are turned off.

    On my WordPress site, however, magic quotes are not turned off. When I fill out a form and type quotes in the input fields, for example, the email I receive back returns slashes.

    How do I turn off magic quotes in WordPress?

  2. monkeymartin@gmail.com
    Member
    Posted 2 years ago #

    Your php.ini file has to be in each directory that has php files. Or you have to change the the main php.ini file

    You can use phpinfo() to find your global php.ini file

    Your php info page should look like this

    The link

  3. robbin_g
    Member
    Posted 2 years ago #

    where do I find the php info page?

    Compelete newbie with this issue monkeying with my theme...

  4. songdogtech
    Member
    Posted 2 years ago #

    Make a plain text file and call it phpinfo.php and then put just this line in it:

    <?php php_info(); ?>

    then put it in the root of your server, and then go to that file with your web browser. You'l see all the php info you need, or if you get an error, that means your server company won't allow php_info to run for security reasons.

    To turn off smart quotes, try this plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic