我有一個頁面按我需要的方式工作,最後/ arist-name /解析爲正確的變量,但客戶端正在添加/ artist-name /?google-tracking = 1234發現他們的聯繫,這是打破它。用REQUST_URI解析(PHP)
http://www.odonwagnergallery.com/artist/pierre-coupey/ WORKS
http://www.odonwagnergallery.com/artist/pierre-coupey/?mc_cid=b7e918fce5&mc_eid=[UNIQID]不起作用
$expl = explode("/",$_SERVER["REQUEST_URI"]);
$ArtistURL = $expl[count($expl)-1];
$ArtistURL = preg_replace('/[^a-z,-.]/', '', $ArtistURL);
請幫幫忙,我一直在尋找解決的辦法。非常感謝!
真實的,但它也有爆炸():P – hanshenrik