function request_uri

cis7 bootstrap.inc request_uri()
cle7 bootstrap.inc request_uri()
elmsmedia7 bootstrap.inc request_uri()
icor7 bootstrap.inc request_uri()
meedjum_blog7 bootstrap.inc request_uri()
mooc7 bootstrap.inc request_uri()

Returns the equivalent of Apache's $_SERVER['REQUEST_URI'] variable.

Because $_SERVER['REQUEST_URI'] is only available on Apache, we generate an equivalent using other environment variables.

20 calls to request_uri()
bef_replace_query_string_arg in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters.theme
Replaces/adds a given query string argument to the current URL.
boost_htaccess_cache_dir_put in sites/all/modules/ulmus/boost/boost.module
Overwrite old htaccess rules with new ones.
boost_parse_url in sites/all/modules/ulmus/boost/boost.module
parse_url that takes into account the base_path
boost_transform_url in sites/all/modules/ulmus/boost/boost.module
Given a URL give back eveything we know
cis_helpdesk_issue_form_alter in sites/all/modules/elmsln_contrib/cis_connector/features/cis_helpdesk_issue/cis_helpdesk_issue.module
Implements hook_form_alter().

... See full list

7 string references to 'request_uri'
cis_remote_watchdog_watchdog in sites/all/modules/elmsln_contrib/cis_connector/modules/cis_remote_watchdog/cis_remote_watchdog.module
Impements hook_watchdog().
dblog_watchdog in modules/dblog/dblog.module
Implements hook_watchdog().
hook_watchdog in modules/system/system.api.php
Log an event message.
httprl_set_default_options in sites/all/modules/ulmus/httprl/httprl.module
Set the default options in the $options array.
syslog_watchdog in modules/syslog/syslog.module
Implements hook_watchdog().

... See full list

File

includes/bootstrap.inc, line 1609
Functions that need to be loaded on every Drupal request.

Code

function request_uri() {
  if (isset($_SERVER['REQUEST_URI'])) {
    $uri = $_SERVER['REQUEST_URI'];
  }
  else {
    if (isset($_SERVER['argv'])) {
      $uri = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['argv'][0];
    }
    elseif (isset($_SERVER['QUERY_STRING'])) {
      $uri = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
    }
    else {
      $uri = $_SERVER['SCRIPT_NAME'];
    }
  }
  // Prevent multiple slashes to avoid cross site requests via the Form API.
  $uri = '/' . ltrim($uri, '/');

  return $uri;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.