1. it is taking too long to give result. usually response comes very quickly within one second. So no need to wait for 10 secs. 2. If i change the file name, it is not working. it is only working for mac_checker.php as after input file, it search for this particular file name. This should not happen and it should work, whatever name i give it. 3. Output files should also be created in real time. Because if the scripts stops in between, we have nothing in hand. if the file is already present, then add the new working mac in it 4. The remaining mac file should be in same format as of original file, so that we can start from where it stopped last time. I think, the program should make a copy of input file in beginning, name it as its master file.(To keep original input file saved) Then as soon as the program checks mac, if it is working, record it in output file, in real time, and remove it from input file, in real time. in this case, no need for making remaining mac file as input file will be treated as remaining mac file