$end_php_self = end(explode('/', $_SERVER['PHP_SELF'])); $executed_php_and_query = $end_php_self.'?'.$_SERVER['QUERY_STRING']; echo $executed_php_and_query; // örneğin; index.php?a=1&b=2&c=3