Replace mkstemps() with PHP builtin tempnam().