Hi,
I have a php function to parse a given xml file and make a database entry.
My problem is I have to read files from a directory which contains more than 100k files, all xml, and parse them one by one and enter records in the database.
When I run the php script it times out after a certain time.
I tried increasing the timeout values in php.ini and also increased the memory to 128MB still unable to parse all the files from the directory.
I think using nice and find might to the trick, however I am not that advanced unix user so don't know how to use nice and find together to solve the problem.
Appreciate if anyone can provide me a solution.
Thanks,
tewari
I have a php function to parse a given xml file and make a database entry.
My problem is I have to read files from a directory which contains more than 100k files, all xml, and parse them one by one and enter records in the database.
When I run the php script it times out after a certain time.
I tried increasing the timeout values in php.ini and also increased the memory to 128MB still unable to parse all the files from the directory.
I think using nice and find might to the trick, however I am not that advanced unix user so don't know how to use nice and find together to solve the problem.
Appreciate if anyone can provide me a solution.
Thanks,
tewari