Have you tried using a database instead? Like have URL's in the database and have the map names in the database too. Then do something like this.
PHP Code:
$server = "[SERVER]"; //url for the mysql server
$DBuser = "[USERNAME]"; //database username
$DBpass = "[PASSWORD]"; //database password
$DB = "[DATABASE NAME]"; //actual database name for sitering
$table = "[TABLE NAME]"; //database table name
mysql_connect($server,$DBuser,$DBpass); //connect to server
mysql_select_db($DB); //select database
$names= mysql_query("SELECT * FROM ".$table.""); //use table 'sites;
while ($qry = mysql_fetch_array($sites)) {
echo $qry[MAP_NAME].'<br />'; //change MAP_NAME to the row that has the map name
echo '<img src="'.$qry[MAP_IMAGE].'" /><br />'; //change MAP_IMAGE to the row that has the map image URL
}
That way all the same stuff gets with the right images and names.
Bookmarks