Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. $root = "http://".$_SERVER['HTTP_HOST'];
  2. $root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
  3.  
  4. $config['base_url']    = "$root";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement