This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

File System Reference In PHP

The unlink() function deletes a file.

This function returns TRUE on success, or FALSE on failure.

Syntax

unlink(filename,context)
Parameter Description
filename Required. Specifies the file to delete

Example

<?php
$file = “newfile.txt”;
if (!unlink($file))
{
echo (”Error deleting $file”);
}
else
{
echo (”Deleted $file”);
}
?>

Definition and Usage

The rmdir() function removes an empty directory.

This function returns TRUE on success, or FALSE on failure.

Syntax

rmdir(dir,context)
Parameter Description
dir Required. Specifies the directory to be removed

Example

<?php
$path = “include”;
if(!rmdir($path))
{
echo (”Could not remove $path”);
}
?>

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. working with directories using php
  2. Find Absolute Path Of A File Or Directory Using PHP
  3. Simple file upload script using php
  4. Context Right Click Menu Using Javascript
  5. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
  6. Finding size of a directory using php
  7. Search Plugin

Leave a Reply

Comments (required)

Spam Protected