phpbackslashmagic-quotesmodx-evolution

Is it possible to turn off magic quotes without an .htaccess or a php.ini file?


One of my clients is hosting their site on freeservers.com ( a host that should be avoided at all costs ).

The host does not allow .htaccess files, and has no editable php.ini file on the server to edit.

But it does have magic_quotes on. Which is destroying all my POST requests.

What options do I have to turn this off still?


Solution

  • Is it possible to turn off magic quotes without an .htaccess or a php.ini file?

    No.

    Which is destroying all my POST requests.

    Not a big deal.
    To loop over $_POST array and strip slashes is a function of scarcely 5 lines, even with recursion.
    Or you can google for the magic quotes and get this ready, I believe. It was posted thousands times here already, you know.