|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
Alumni
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|