PHP pdf generate problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
msjames
Forum Newbie
Posts: 2
Joined: Tue Jul 11, 2006 4:33 pm

PHP pdf generate problem

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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
msjames
Forum Newbie
Posts: 2
Joined: Tue Jul 11, 2006 4:33 pm

Post 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.
Post Reply