Page 1 of 1

flushing resources

Posted: Fri Jul 25, 2008 1:53 pm
by cybercog
I'm curious on how to insure that I have all of the resources available ready to use again after running a script.

I'm generating PDF's with dompdf, works great and I want to run the script again for anoner pdf generation but I want to insure that my resources are restored.

I've been looking at the PHP manual but I'm not sure what I need to do.

Any tips?

Thanks,

- D

Re: flushing resources

Posted: Fri Jul 25, 2008 3:06 pm
by Christopher
What do you mean my "resources"? Can you be specific?

Re: flushing resources

Posted: Mon Jul 28, 2008 2:27 pm
by cybercog
I'm going to run my PDF generator in a for loop.

Each time I write one and then go to the top of the loop until I'm done.

Each time I loop I want to make sure I'm starting fresh with all of the memory I have available.
Since the script is not being called fresh (but the PDF generator is) I want to make sure I don't cache
more memory each time.

Thanks,

- D