$tempFileName = GeneralUtility::tempnam('myPrefix_'); echo $tempFileName; // outputs something like 'myPrefix_5f7c8a6a700bd.tmp'
$tempFileName = GeneralUtility::tempnam(); echo $tempFileName; // outputs something like '/tmp/5f7c8a6a700bd.tmp'Package Library: The GeneralUtility class is part of the TYPO3 CMS Core package, which is included in the typical TYPO3 installation.