Jump to content

Suggest Function For This Work...


Piyush

Recommended Posts

Please function for this work...it inputs and removes all the "\" coming before ' or "for eg...input----(\' string...)should return...('string...)

Link to comment
Share on other sites

Are these slashes appearing automatically in your strings? It sounds like you have a server with magic quotes activated.The stripslashes() function removes slashes from special characters.

Link to comment
Share on other sites

If you want to stop it from happening in the first place then set the magic_quotes_gpc PHP option to off.http://www.php.net/manual/en/info.configur...agic-quotes-gpcYou can only set that option inside an htaccess file or php.ini file, using ini_set at runtime on that option doesn't do anything.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...