hassank1 Posted January 11, 2008 Share Posted January 11, 2008 Hii I am using WAMP I am printing a post on my page ... and before that I've cleaned it ... htmlentities and these stuff .. so if output is : what's up <-- the char ' is printed correctly however,when I uploaded the script to my website the output become : what\'s up Link to comment https://forums.phpfreaks.com/topic/85503-sometimes-and-sometimes/ Share on other sites More sharing options...
asmith Posted January 11, 2008 Share Posted January 11, 2008 that's true . use stripslashes() in script : stripslashes("what\'s up") it will return "what's up". Link to comment https://forums.phpfreaks.com/topic/85503-sometimes-and-sometimes/#findComment-436345 Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Do you have Magic Quotes on in your php.ini? It's doing what it should do, either via Magic Quotes or the addslashes function in your code, since you don't want to pass single quotes directly rigth? Link to comment https://forums.phpfreaks.com/topic/85503-sometimes-and-sometimes/#findComment-436439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.