1 drupal.inc drupal_tempnam($directory, $prefix)

Creates a file with a unique filename in the specified directory.

Deprecated

since 1.0.0

See also

backdrop_tempnam()

Related topics

File

core/includes/drupal.inc, line 1705
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_tempnam($directory, $prefix) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_tempnam($directory, $prefix);
}