XML Rename Report ...


Filename: act-1989-76-2017-07-01.xml ... replace act- with ACT~AUS~NSW~Y. and delete the date at the end -2017-07-01 ... this will vary with each file


"; foreach (glob($path . "act-*-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].xml") as $xmlfil) { $predotxml=explode(".xml", $xmlfil); $postdotxml=explode("act-", substr($predotxml[0],0,(strlen($predotxml[0]) - 11))); $renfile=$postdotxml[0] . "ACT~AUS~NSW~Y." . $postdotxml[1] . ".xml"; $htmlis=str_replace("", "
File candidate called " . $xmlfil . " found that we renamed to " . $renfile . "", $htmlis); rename($xmlfil, $renfile); } echo $htmlis; exit; } else if (isset($_POST['path'])) { $path=str_replace("+"," ",urldecode($_POST['path'])); $htmlis="

XML Rename Report ...


Filename: act-1989-76-2017-07-01.xml ... replace act- with ACT~AUS~NSW~Y. and delete the date at the end -2017-07-01 ... this will vary with each file


"; foreach (glob($path . "act-*-[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].xml") as $xmlfil) { $predotxml=explode(".xml", $xmlfil); $postdotxml=explode("act-", substr($predotxml[0],0,(strlen($predotxml[0]) - 11))); $renfile=$postdotxml[0] . "ACT~AUS~NSW~Y." . $postdotxml[1] . ".xml"; $htmlis=str_replace("", "
File candidate called " . $xmlfil . " found that we renamed to " . $renfile . "", $htmlis); rename($xmlfil, $renfile); } echo $htmlis; exit; } else { if (!isset($_GET['nothing'])) { $htmlis="

XML Rename Run ...


Filename: act-1989-76-2017-07-01.xml ... replace act- with ACT~AUS~NSW~Y. and delete the date at the end -2017-07-01 ... this will vary with each file



XML File Folder on which to perform renames:  

"; echo $htmlis; exit; } else { exit; } } ?>