Encode php line code url, please help
Posted: Wed Jul 11, 2012 4:15 pm
Need a little direction with this.
I am trying to encode this line so it write the URL dislayed as somewhat encode form souorce viewer.
The URL:
http://sitepoint.com/images/user/media/song.mp3
I would like it to appear as something gebirsh or encoded:
http://%%5dfsitepoint%%%/@#$%%./CD%20%%%%&*
Line
I have tried these methods none work
NONE worked for me...
I am trying to encode this line so it write the URL dislayed as somewhat encode form souorce viewer.
The URL:
http://sitepoint.com/images/user/media/song.mp3
I would like it to appear as something gebirsh or encoded:
http://%%5dfsitepoint%%%/@#$%%./CD%20%%%%&*
Line
Code: Select all
$js_songs_url[] = "songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i])."';" ;
Code: Select all
$js_songs_url[] = mb_convert_encoding("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;
$js_songs_url[] = rawurldecode("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;
$js_songs_url[] = html_entity_decode("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;
$js_songs_url[] = preg_replace("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;