Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 30th April 2002, 07:52   #1
liquidpixel
Member
 
Join Date: Mar 2001
Location: Orlando, FL | Cuernavaca, MX
Posts: 54
Unacceptable characters in ID3 Tags don't show in playlist

I've got a couple of PHP scripts running that show what is playing on my site. I have been successful in calling the currently playing song into a dynamic flash document (don't ask me for help here)... HOWEVER, any song that has an apostrophe ( ' ) in it makes it such that the apostrophe and anything after it does not display.

Is there some PHP code that will force the accpetance of this character? Or am I going to have to live with it?


Liquidpixel
http://www.pipegroove.com

The flash is not up on the site yet.
liquidpixel is offline   Reply With Quote
Old 30th April 2002, 16:11   #2
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,109
addslashes

Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).

This will also help you since when you output your string with a ' in it the parser thinks the string is terminated.

$string1 = 'Monkey's Eyeball'
print($string1) would output... Monkey

$string1 = 'Monkey's Eyeball'
$string2 = addslashes($string1)
print($string2) would output... Monkey's Eyeball

(Of course, you use variables where I have 'Monkey's Eyeball'. This is for demonstration purposes only to show what happens when the variable contents has a single quote in it.)

Disclaimer:
I learned all this from the PHP site this morning. Go there for more information.

FesterHead is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump