I've got a wap/http website that offers free games, appz, ringtones and images to download. (tsm100.iespana.es)

I've got this script in php and would like to implement it into a wml page, but i can't, i doesn't work. Can someone help me?


echo "Directorio ".$path.":<br><br>";

while ($archivo = $directorio->read())
if ($archivo == "." OR $archivo==".." OR $archivo==".listfic" OR $archivo=="melodias.php") {
echo "<a href=".$archivo.">".$archivo."</a><br/>";

The script is working on a normal php page but not in the wml, can someone implement it or help me?