$_SERVER['REQUEST_URI']

nell'esempio che hai fatto, questa istruzione ritorna:

/news.php?id=3333&categoria=prova