名为PHP的AJAX无法读取URL

Consider a two language site where the english version of a page is called via ?lang=en The following AJAX call seems to work fine for printing sidebar of RSS news:

$(document).ready(function() {
            $.ajaxSetup ({  
                cache: false  
            });
            $('.msg_head').eq(0).click(function(){
                $('.msg_body').eq(0).load('printSideNews.php');
                $('.loadMessage').eq(2).hide();
            });

printSideNews.php starts as follows:

function checkNewsLanguage(){
        $requiredURL = $_SERVER['REQUEST_URI'];
        $Languag = explode('?lang=',$requiredURL);
        $myLanguage = $Languag[1];
        //echo $myLanguage;
        if($myLanguage == 'en')
            return false;
        else return true;
    }

For some reason the language check which is checking the URL doesn't work. I can't get the english version of the news sidebar. If I directly go to news.php(no AJAX used but same PHP functions) where I use absolutely the same procedure the language switch is working. Any help solving this is greatly appreciated.

The AJAX call never passes the lang parameter, try adding data: { lang: 'en' } to your ajaxSetup call.

UPDATE Correction:

$('.msg_body').eq(0).load('printSideNews.php', 'lang=en');