Is there's a way to speed up my php code which parse XML files

view full story

http://stackoverflow.com – I'm developing a web application and we are using XML as a database and I'm using Linux as a platform and centos 6.5 as a server. Changing some value would make a lot a lot of changes in about six XML files. So here's the problem: Pressing button save after editing, adding, deleting takes about one or one and half minutes or more! This is because my code has to update about six XML files, log files and the crontab file. I wonder if there's any thing similar to threads in PHP? I have my functions and all code I want, I just want to know how php can be used in a new way to make performance be (HowTos)