Changing server variable to codeigniter method call