I need to make this code more efficient and speed it up.
It is ran through command line.
It imports XML thru $vulneratorxmlfile
it looks at the Affected column and creates duplicate entry in the output file for each computer name.(sometimes it is an IP address)
It also looks up in the csv for the active directory OU path.
It also looks in another csv for the IAVA to TCNO mapping.
All this gets saved into a new excel XML workbook.
Right now, on a small 2mb $vulneratorxmlfile xml file, it is taking about 7mins and 30mb of to output the file.
I have included the php and the csv&xml files in the attached zip. I tried displaying the php code, but went over the length
So if there is anything that can be done to make this more efficient, faster, streamlined. I would appreciate it.
Thanks