Page 1 of 1

PHP pdf generate problem

Posted: Tue Jul 11, 2006 4:44 pm
by msjames
Hi, I am new to generate pdf in PHP. I have a PHP program that generates a pdf file. If this program is called once, it will generate the pdf correctly, but if it's called multiple times by another program, some of the resulting pdf's will mess up (some sentences overlap each other, some are missing). Does any one know what happen to this by luck?

Thank you first.

Posted: Tue Jul 11, 2006 11:48 pm
by Benjamin
Maybe that will help? Without code there isn't much we can do for you.

http://www.zend.com/zend/spotlight/crea ... c=0&view=1

Posted: Wed Jul 12, 2006 1:17 pm
by msjames
Thank you, astions.
I fixed it. It was a threading problem. ThreadsPerChild was 50 in httpd.conf before, so I changed it to 1. Now all pdf's are generated correctly. Not sure if this has any side effect, but at least the current problem is solved.