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/
cis7 file_uri_scheme($uri)
cle7 file_uri_scheme($uri)
elmsmedia7 file_uri_scheme($uri)
icor7 file_uri_scheme($uri)
meedjum_blog7 file_uri_scheme($uri)
mooc7 file_uri_scheme($uri)

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


$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


Related topics

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

... See full list


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


function file_uri_scheme($uri) {
  $position = strpos($uri, '://');
  return $position ? substr($uri, 0, $position) : FALSE;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.