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