Page 1 of 1

Turning magic quotes on

PostPosted: 13. February 2006 13:08
by mrbeardy
I'm installing a copy of Symfony:

http://www.symfony-project.com/

and it requires that magic quotes be turned off. I've tried but can't work out how to do this.

Any hints or help would be appreciated!

PostPosted: 13. February 2006 13:21
by KingCrunch
In php.ini
Code: Select all
; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

At runtime
Code: Select all
string stripslashes ( string str )

Code: Select all
$string = stripslages($string);