Hello, I have one project in PHP which was running on windows server perfectly but when I moved it to linux server it is not allowing me to enter any value with ' anywhere which was running properly on windows server. Now what should I have to do to allow '[\b] on linux server? Please help me. Thanks in advance.
where do you enter ' ? if its in the code you should probably try \' . if not , and you are entering it in textbox try this one and put it in a header file or something . foreach ($_GET as $k => $v) { $_GET[$key] = addslashes(trim($v)); } foreach ($_POST as $k => $v) { $_POST[$key] = addslashes(trim($v)); } PHP:
i got the solution for this and the solution is in the php.ini magic_quotes_gpc = Off which I turned on and it worked!!
ohhhhhhhhhhhh magic quotes is source / root of all evil!! I always turn off at beginning of every project. I've gotten a few bald spots because of it. magic_quotes_gpc should be default off!