flushing resources

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
cybercog
Forum Newbie
Posts: 20
Joined: Sat Oct 06, 2007 10:35 pm

flushing resources

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: flushing resources

Post by Christopher »

What do you mean my "resources"? Can you be specific?
(#10850)
cybercog
Forum Newbie
Posts: 20
Joined: Sat Oct 06, 2007 10:35 pm

Re: flushing resources

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