- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
tempnam() function in PHP
The tempnam() function creates a temporary file with a file name which is unique.
Syntax
tempnam(dir, prefix)
Parameters
dir − The directory where the temporary file will get created.
prefix − The beginning of the file
Return
The tempnam() function returns the new temporary filename or FALSE on failure.
Example
<?php echo tempnam("C:\test
ew","TMP"); ?>
Output
C:\test
ew\TMP1.tmp
Advertisements
To Continue Learning Please Login
Login with Google