Me respondo a mí mismo. Solucionado: Código: $urlactual = $_SERVER["REQUEST_URI"];
$urlactual = $_SERVER["REQUEST_URI"];
Reglas del foro