Hi guys, this is another problem I'm having with unlink. This is the error i get:
Warning: Invalid argument supplied for foreach() in d:\Server\Apache\htdocs\tracker\includes\delete.php on line 17
On line 17 and onwards, i got just this:
foreach (glob("*.png") as $filename) {
unlink("$tempimgpath/$filename");
}
in config.php, which is included in delete.php by the way
$tempimgpath = "d:/Server/Apache/htdocs/tracker/images/temp";
and I've also tried with directory, like
$_tempimagedir = "images/temp";
but everytime I get that error, any idea what I'm doing wrong?