I want to develop an lyrics script. I want to host a few example songs so I use a PHP script and this (http://www.computerc...erialize-to-lua) function to echo a folder list. But CC don't unserialize this table and I don't know why. Maybe anyone can help me.
I don't want to use JSON, because then you need an extra API.
If you want to test it in CC the URL is: http://timia2109.com/ccapi/lyric.php
(formated by me)
{
[0] = {
["get"] = "AttentionWhore.txt",
["Artist"] = "deadmau5",
["Song"] = "Attention Whore",
},
[1] = {
["get"] = "GoldSkies.txt",
["Artist"] = "Sander Van Doorn, Martin Garrix and DVBBS",
["Song"]="Gold Skies",
},
[2] = {
["get"] = "RedLights.txt",
["Artist"]="Tiesto",
["Song"]="Red Lights",
},
[3] = {
["get"] = "TheSpark.txt",
["Artist"] = "Afrojack",
["Song"]="The Spark",
},
[4] = {
["get"]="Wasted.txt",
["Artist"]="Tiesto",
["Song"]="Wasted (feat. Mattew Koma)",
},
}
Real Output (copy from Chrome so also formated):
Spoiler
PHP Code:
Spoiler
Thank you and sorry for bad english,
timia2109
Edited by timia2109, 19 October 2014 - 11:05 AM.











