file_uri_target

function file_uri_target

file_uri_target($uri)

Returns the part of a URI after the schema.

Parameters

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

Return value

string|bool A string containing the target (path), or FALSE if none. For example, the URI "public://sample/test.txt" would return "sample/test.txt".

See also

file_uri_scheme()

Related topics

File interface
Common file handling functions.

File

core/includes/file.inc, line 107
API for hand