Manual talk:$wgServerName

From mediawiki.org
Jump to navigation Jump to search

If you need the servername in code, use:

$serverName = parse_url( $wgServer, PHP_URL_HOST ); // calculate, e.g., xyz.edu from $wgServer = http://xyz.edu -- — Preceding unsigned comment added by G.Hagedorn (talkcontribs) 2011-11-17 21:20 (UTC)