See Also

Example

<?
// delete all files from the folder /temp1/ which are also found in /temp2/,
// except index.php
DeleteDirFiles(
$_SERVER["DOCUMENT_ROOT"]."/temp2",
$_SERVER["DOCUMENT_ROOT"]."/temp1",
array("index.php")
);
?>