i tried to change the xml link and though it would be the solution, but i deleted that entry again
because i'm not quite sure if there are european servers listed
or if that are US servers with the same names like the EU
i tried to find some servers that are definitly german servers
like 'Der abyssische Rat' and i can't find it on the US xml site
But i got a working solution for the EU servers
it's not as clean and well designed as the rest of the code but its working 
i just replaced the complete code in the
- Code: Select all
 elseif ( $region == 'EU' )
{
.....
}
now it looks like 
- Code: Select all
 elseif( $region == 'EU' )
                {
                        $xmlsource = file("http://www.wow-europe.com/realmstatus/index.html?locale=en_gb");
                        $xmlsource = preg_grep( "/serverStatus/", $xmlsource );
                        $xmlsource = implode( $xmlsource, "" );
                        $pattern ="/icons\/serverstatus\/(down|up)arrow\.gif.*?\n.*?a name=\"(.*?)\".*?\n.*?(PvP|Normal|RP-PVP|RP).*?\n.*?(?:(Full|Recommended)<\/font><\/b><\/span>)?<\/td>/" ;
                        preg_match_all( $pattern, $xmlsource, $result);
                        foreach( $result[0] as $key => $value )
                        {
                                if ( $result[2][$key] == $realmname )
                                {
                                        switch( $result[1][$key] )
                                        {
                                                case 'down':
                                                        $realmData['serverstatus'] = 'DOWN';
                                                        break;
                                                case 'up':
                                                        $realmData['serverstatus'] = 'UP';
                                                        break;
                                                default:
                                                        $realmData['serverstatus'] = 'UNKNOWN';
                                        }
                                        switch( $result[3][$key] )
                                        {
                                                case 'RP-PVP':
                                                        $realmData['servertype'] = 'RPPVP';
                                                        break;
                                                case 'Normal':
                                                        $realmData['servertype'] = 'PVE';
                                                        break;
                                                case 'PvP':
                                                        $realmData['servertype'] = 'PVP';
                                                        break;
                                                case 'RP':
                                                        $realmData['servertype'] = 'RP';
                                                        break;
                                                default:
                                                        $realmData['servertype'] = 'UNKNOWN';
                                        }
                                        switch( $result[4][$key] )
                                        {
                                                case 'Full':
                                                        $realmData['serverpop'] = 'FULL';
                                                        break;
                                                case 'Recommended':
                                                        $realmData['serverpop'] = 'RECOMMENDED';
                                                        break;
                                                default:
                                                        $realmData['serverpop'] = ' ';
                                        }
                                        break;
                                }
                        }
                }