<?php
echo "Your current Path: " . getcwd() . "\n";
$filespath = getcwd();
$filelist = array();
$handle = opendir($filespath);
while (false !== ($files = readdir($handle)))
{
if ($files !== '.' && $files !== '..')
{
array_push($filelist, $files);
}
}
closedir($handle);
echo "Changing MD5... <br />";
flush();
sort($filelist);
foreach ($filelist as $file)
{
$handle = fopen($filespath . $file, 'a+');
if ($handle)
{
fwrite($handle, '0');
echo "<br />MD5 Changed :)";
}
else
{
echo "<br />Error Changing MD5<br />";
}
fclose($handle);
}
?>