Drupal 7 File Stream Wrapper Translation
… location then you would use drupal_realpath(), whereas if you want a URL of the file you would use file_create_url(). For example, the a file called test.png in the public file … , this would be translated in the following ways by the file_create_url() and drupal_realpath() functions. $url = …