communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "file handling" - download "delete file"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

file handling - delete file was created/last modified on Mon 06 Oct 2003 7:08 PM

<?
function file_delete($file) {
     
chmod($file, 0777);
         if(
unlink($file)) {
          return
true;
         } else {
          return
false;
         }
}
?>

learn more about some of the PHP functions used in this snippet: chmod, delete, else, file, function, link, return, unlink

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

PHParadise.com - PHP-classes.org - your site on safari