Thanks for answer,
I solved the problem with files. I eeded
to said to the unlink function the
directory too, not only the file name.
I tried to do what you said with
backslashes, but if i put only one (because there was single quotes) it
didn't work. Finally i put the directory
name with double quotes.
The code is:
$directory="c:\temp\A\";
$dir= opendir($directory);
while ($file=readdir($dir)) {
echo"FICHERO: ".$file."<BR>";
if(!is_dir($file)) {
$r=unlink ($directory.$file);
}
}
closedir($dir);
$r=rmdir($directory);
But i can't delete the directory!!!!
Arvato