Code: <?php $path = "/xml/";
// you cannot see it here, but $login contains a username. (The username is the name of the file)
// eg. an user named "sharal" would have an associated xml file named "sharal.xml"
// this is not exactly what i want it to do, but it simply renames the file with it's original name
$file = $login;
$old = "old";
$new_path = $login . $old;
rename($path.$file.".xml", $path.$new_path.".xml"); ?>