zaro Posted January 31, 2008 Share Posted January 31, 2008 The script in question will crawl through a directory and grabs 2 matching files that are in each directory(still working on this part). By matching files I mean, test.dat and test.csv, once it has these files it preforms some actions on the .dat taken from the .csv file and outputs a new updated .dat file. It works perfectly for 1 set of matching files, I have to copy in the 2 file names each day and run the script anywhere from 1 to 30 times depending on how many data files were added. Now my questions are whats the best way to execute this script with variable file names 30 times, the data files have roughly 30k lines of data each which is reprocessed before be exported. My thoughts were to created a multithreaded script and just pass each set of file names, I'm on windows box and php doesn't preform mutlithreaded well on windows. I'm thinking that running the script back to back in a loop structure would take to long. -Zaro Link to comment https://forums.phpfreaks.com/topic/88743-some-script-questions/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.