"$file_path//rename_variation//rename_variation.tmp",
);
$counter = 1;
-/* loop through each $file and rename it to rename_variation2.tmp */
+/* loop through each $file and rename it to rename_variation_renamed.tmp */
foreach($src_filenames as $src_filename) {
echo "-- Iteration $counter --\n";
$fp = fopen("$file_path/rename_variation/rename_variation.tmp", "w");
fclose($fp);
- $dest_filename = "$file_path/rename_variation2.tmp";
+ $dest_filename = "$file_path/rename_variation_renamed.tmp";
var_dump( rename($src_filename, $dest_filename) );
// ensure that file got renamed to new name
var_dump( file_exists($src_filename) ); // expecting false