Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple PHP question

Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
02-16-2009 09:43
My knowlege of PHP is severaly limited.
I have writen a simple PHP script that takes some input from SL, it works as I want with one exception. The string I am sending from SL contains a ' and the PHP parses it as \' . I have not been able to figure out how to correct this problem though I am sure it's pretty simple. Any help would be greatly appreciated.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
02-16-2009 10:21
I think you should be able to use a PHP function called "stripslashes()". Just pass your string in as the parameter, and it should return it with the slashes removed.
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
02-16-2009 11:14
Thank you, that did it. I knew it was going to be something simple.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/