file_build_uri

Versions
7
file_build_uri($path)

Given a relative path, construct a URI into Drupal's default files location.

Related topics

▾ 1 function calls file_build_uri()

file_unmanaged_copy in includes/file.inc
Copy a file to a new location without calling any hooks or making any changes to the database.

Code

includes/file.inc, line 658

<?php
function file_build_uri($path) {
  $uri = variable_get('file_default_scheme', 'public') . '://' . $path;
  return file_stream_wrapper_uri_normalize($uri);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.