rendered paste body GNU nano 1.3.10 File: snes.php<?php$handle = opendir('/home/justin/Desktop/Roms');while (false !== ($file = readdir($handle))) { $path = pathinfo($file); if ($path['extension'] == bin) { $base = substr($file, 0, -4); $name = strtok($base,'('); $final = substr($name, 0, -1); #echo "Adding $file to archive $final.7z<br>"; $final2 = str_replace(" ","\ ",$final); $file2 = str_replace(" ","\ ",$file); echo system("7z a $final2.7z $file2",$output) or die("Error:".$output); echo "Adding $file to $final.7z<br>"; }}?>