Il y'a qui te donne l'url apres le http://www.tonsite.com $_SERVER["REQUEST_URI"] Tu peux utiliser html_entity_decode($_SERVER["REQUEST_URI"]) pour l'avoir sans les %20(J'ais oublié le nom desole)
// Pour les utilisateurs ayant des versions antérieures à PHP 4.3.0 : function unhtmlentities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); return strtr ($string, $trans_tbl); }
La fonction est tiré de php.net
|