Bman900 Posted October 31, 2011 Share Posted October 31, 2011 So I ran into the most bizarre problem ever on my live server. For some odd reason something, somewhere is adding an extra character after every " mark I have. Now I am using zend framework but this can not be an issue involving them since everything works perfectly on my localhost. I am using 1and1 to host my application but for the love of me I can not narrow this down any more. Ex of my problem, I type this into my text box: "This is a sentence" and it proceeds to saving this: \"This is a sentence\" Something is happening right after I submit my form because if I add the code directly in my database, it displays everything fine. Has any one ever ran into this problem before? Quote Link to comment https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/ Share on other sites More sharing options...
Pikachu2000 Posted October 31, 2011 Share Posted October 31, 2011 magic_quotes_gpc is probably set to On in your php.ini file. It really shouldn't be. If you can change it, change it (there might even be an article in their FAQs about it). If not, you'll need to check for it and use stripslashes to compensate for it. Quote Link to comment https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/#findComment-1283732 Share on other sites More sharing options...
Bman900 Posted October 31, 2011 Author Share Posted October 31, 2011 Unfortunately I tried turning it of now by creating my own php.ini file like other people have done so but it did not work. Before I call 1and1 about this issue is there a way I can check it they do have it turned on? Quote Link to comment https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/#findComment-1283736 Share on other sites More sharing options...
The Little Guy Posted October 31, 2011 Share Posted October 31, 2011 This is how you can check: <?php phpinfo(); ?> You will probably need to restart Apache after you change the value to off. Quote Link to comment https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/#findComment-1283739 Share on other sites More sharing options...
Bman900 Posted October 31, 2011 Author Share Posted October 31, 2011 There we go I managed to turn it off Everything is well again. I can't believe they don't have this off by default. Thank you very much!!! Quote Link to comment https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/#findComment-1283743 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.