Hey all,
I am trying to remove 5 files from a directory.
By doing:
if (unlink("install.php"))
{
print "<b>Removing installation files: </b> <font color=red>Successful</font><br>";
}
else
{
print "<b>Removing installation files: </b> <font color=red>Unsuccessful</font><br>";
}
This works and deleted "install.php" - however i wish to remove "1.php", "2.php", "3.php", "4.php" also. I don't want to do the above method for each file seperately; simply as I want one removal all at once, therefor only resulting only one "Successful" or "Unsuccessful". I think ya will know wot I mean 🙂.
if (unlink("install.php", "1.php", "2.php", "3.php", "4.php"))
I did try try the above code also, just a "test" as such on weather it would work or not; sadly it didnt. So i was woundering if anyone could please correct me? And possibly show me the correct method.
Any help would greatly be appreciated! Thanks for ya time guys.