Jump to:
navigation
,
search
Search
Loading
PHP File Delete File
From w3cyberlearnings
Contents
1
PHP Delete A file
2
Syntax unlink
3
Example 1
4
Output
5
Related Links
PHP Delete A file
Delete a file completely.
Syntax unlink
unlink(filename);
Example 1
Expect the file is existed.
<?php unlink("file.txt"); ?>
Output
Related Links
PHP File Access and File Templates
PHP Tutorial
Tutorial Home
PHP File Linux vs. Windows
PHP File Information
PHP File Create
PHP File Close
PHP File Read
PHP File Read Reverse
PHP File Write
PHP File Write to end or append to
PHP File Write at Beginning
PHP File Write at specific location
PHP File Truncate
PHP File Replace a specific word
PHP File Replace a specific word with associative array
PHP File Copy File
PHP File Copy Reverse
PHP File Search within file
PHP File Delete File
PHP File Template
PHP File Email Template
PHP File Template with MySQL
PHP File Access with MySQL
Categories
:
PHP
Tutorial
File and Template
Navigation
Main page
Recent changes
Random page
Help
Web
HTML
HTML5
JSON
CSS
jQuery
PHP
SQL
MySQL
PostgreSQL
MISC
Linux
Alfresco
FTP
DNS
EMC
References
HTML
CSS
PHP
MySQL
PostgreSQL