How is it possible for
echo $REQUEST_URI();
to generate this error:
Fatal error: Call to undefined function: () in ...
?
try
echo $REQUEST_URI;
No, that doesn't work either, and neither does $SERVER['REQUEST_URI']. I think that some servers, probably through some setting in php.ini, have this switched off. Try using $SERVER['SCRIPT_NAME'] instead, that should do what you want 🙂