I have encountered some problems using Apache+PHP+Xalan in cooperation.
Environment is:
- Windows NT SP6
- Apache v1.3.19
- PHP v4.0.5. runs as Apache module
- Xalan v1.0 being used as external XSLT processor.
Pages are generated as the following:
- get data from database
- create XML data
- give it to Xalan
- get HTML page from it
- return it to the browser
All works fine when there is not so much simlatenous visitors available on-line. But when this number starts to grow, then sometimes it seems, that PHP ends its work before Xalan is finished HTML generation. In this case Xalan process, started by PHP is not terminates completely, it leaves in memory and all slows down whole system 🙁
The question is: how to tell PHP to wait until external application finishes its work? It will helps me to solve this problem.
Any other ideas are also acceptable.
PS: i know, i can use Sablotron instead of Xalan, but Sablotron is still in beta and lacks some functionality, I need.