function file_uri_scheme

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 file.inc file_uri_scheme($uri)
cle7 file.inc file_uri_scheme($uri)
elmsmedia7 file.inc file_uri_scheme($uri)
icor7 file.inc file_uri_scheme($uri)
meedjum_blog7 file.inc file_uri_scheme($uri)
mooc7 file.inc file_uri_scheme($uri)

Returns the scheme of a URI (e.g. a stream).

Parameters

$uri: A stream, referenced as "scheme://target".

Return value

A string containing the name of the scheme, or FALSE if none. For example, the URI "public://example.txt" would return "public".

See also

file_uri_target()

Related topics

40 calls to file_uri_scheme()
drupal_dirname in includes/file.inc
Gets the name of the directory from a given path.
drupal_load_stylesheet in includes/common.inc
Loads the stylesheet and resolves all @import commands.
drupal_rmdir in includes/file.inc
Removes a directory.
drupal_tempnam in includes/file.inc
Creates a file with a unique filename in the specified directory.
drupal_unlink in includes/file.inc
Deletes a file.

... See full list

File

includes/file.inc, line 199
API for handling file uploads and server file management.

Code

function file_uri_scheme($uri) {
  $position = strpos($uri, '://');
  return $position ? substr($uri, 0, $position) : FALSE;
}
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.