Depending on what you are coding I would say make it into an apache module, then use the Apache API and you will have access to that and plenty more. Plus you wont have to worry about memory management or memory leaks. Hit me up on icq at 36837470 if you need some other help.
Coding apache modules is fun
