Initialization of Logs/4Chan_Bans_Log-Reverse_Chrono-415.json
[Backup_bans.verniy.xyz.git] / Scripts / Maintenance-DO_NOT_USE / Functions / ExtensionFixer.php
blob4723ed6bf30d5bd80ce60bc2724affc7faf4cd10
1 <?php
2 //replace .txt with .json
3 function changeExtension(&$ready_file, &$file_path){
4 $new_name = preg_replace("/.txt/", ".json", $file_path);
5 rename($file_path, $new_name);
6 fclose($ready_file);
7 $file_path = $new_name;
8 $ready_file = fopen("$new_name", "r");