title: Lithium PHP global variables
body: <p>I have looked all over the place, but still cant figure out how to set a global variable in PHP (Lithium framework). </p>
  
  <p>My goal is to make the server root always accessible everywhere, without having to write this code everytime, to make my app independent of the hostname it is running on :</p>
  
  <pre><code>&lt;?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?&gt;
  </code></pre>
  
  <p>Please don't tell me to just use absolute or relative paths, as I have tried everything that way, and it is simply too messy (besides not working most of the time).</p>