Skip to main content
added 38 characters in body
Source Link
mikeytown2
  • 8.3k
  • 1
  • 34
  • 46

It can be one or more of the following:

<?php print $GLOBALS['base_url']; // Set by drupaldrupal_settings_initialize() or settings.php. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. 

You can also check the database with this query

SELECT * FROM variable WHERE value LIKE '%example.com%' 

where example.com is the domain; this is not guaranteed to be correct though.

It can be one or more of the following:

<?php print $GLOBALS['base_url']; // Set by drupal. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. 

You can also check the database with this query

SELECT * FROM variable WHERE value LIKE '%example.com%' 

where example.com is the domain; this is not guaranteed to be correct though.

It can be one or more of the following:

<?php print $GLOBALS['base_url']; // Set by drupal_settings_initialize() or settings.php. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. 

You can also check the database with this query

SELECT * FROM variable WHERE value LIKE '%example.com%' 

where example.com is the domain; this is not guaranteed to be correct though.

Add in $_SERVER options as well
Source Link
mikeytown2
  • 8.3k
  • 1
  • 34
  • 46

it isIt can be one or more of the following:

<?php print $GLOBALS['base_url']; // Set by drupal. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. 

You can also check the database with this query

SELECT * FROM variable WHERE value LIKE '%example.com%' 

where example.com is the domain; this is not guaranteed to be correct though.

it is

<?php print $GLOBALS['base_url']; 

It can be one or more of the following:

<?php print $GLOBALS['base_url']; // Set by drupal. print $_SERVER['HTTP_HOST']; // Set by apache. print $_SERVER['SERVER_NAME']; // Set by apache. 

You can also check the database with this query

SELECT * FROM variable WHERE value LIKE '%example.com%' 

where example.com is the domain; this is not guaranteed to be correct though.

use $GLOBALS array
Source Link
mikeytown2
  • 8.3k
  • 1
  • 34
  • 46

it is

<?php global $base_url; print $base_url$GLOBALS['base_url']; 

it is

<?php global $base_url; print $base_url 

it is

<?php print $GLOBALS['base_url']; 
added 9 characters in body
Source Link
M a m a D
  • 3.8k
  • 2
  • 33
  • 63
Loading
Source Link
M a m a D
  • 3.8k
  • 2
  • 33
  • 63
Loading