I'm trying to define a constant but it breaks my script. I can define it in a standard varible absoloutly fine, without errors but as soon as I try to define it with the const function it no longer works, here is my code.
const CURRENT_URL = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];