02Mar

PHP Delete Files Script

PHP

I needed a script to delete all files inside a folder with certain extension, a script that could be executed with just a click. So here is how i did it:
<?
{
foreach (glob(”*.txt*”) as $fn) {
unlink($fn);
}
}
header(”Location: /1″);
?>
where *.txt is the extension im looking for delete and /1 is the directory inside im placing the script. [...]

No comments | read more »
29Feb

Servage Hosting review

Hosting, PHP

I WAS WRONG. DO NOT CHOSE SERVAGE FOR HOSTING OR YOU WILL REGRET THE CHOOSE
This is the phrase i looked on search engines for a couple of days before i choose’d my current webhosting. After reading dozens of articles and peoples reviews i decided to host with SERVAGE and i must say it was a [...]

No comments | read more »