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
flushing resources
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: flushing resources
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
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