March 3rd, 2000, 04:26 PM
We are trying to remove multiple files (with different extentions) and having some PHP syntas troubles:
does NOT seem to work!
In other words, we are trying to 'imitate UNIX
Thanks in advance.
March 4th, 2000, 02:10 AM
try this: i havn't checked, might work:
if (ereg("somestring",$file)) unlink($file);
disclaimer as usual
March 4th, 2000, 02:13 AM
sorry forgot this. add this line before the rest of the code..
$d = dir(".");
$d = dir("somedirstring");
hope this helps..