Function __global->_cms_tempnam
Definitions
sources/files2.php
- Create file with unique file name, but works around compatibility issues between servers. Note that the file is NOT automatically deleted. You should also delete it using "@unlink", as some servers have problems with permissions.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $prefix | string | No | No | Blank (empty string) | N/A | N/A | The prefix of the temporary file name |
Returns
- The name of the temporary file (false: error)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Create file with unique file name, but works around compatibility issues between servers. Note that the file is NOT automatically deleted. You should also delete it using "@unlink", as some servers have problems with permissions.
*
* @param string $prefix The prefix of the temporary file name
* @return ~string The name of the temporary file (false: error)
*/
function _cms_tempnam(string $prefix = '')
* Create file with unique file name, but works around compatibility issues between servers. Note that the file is NOT automatically deleted. You should also delete it using "@unlink", as some servers have problems with permissions.
*
* @param string $prefix The prefix of the temporary file name
* @return ~string The name of the temporary file (false: error)
*/
function _cms_tempnam(string $prefix = '')

