Robin Getz wrote: > Curt Zirzow wrote: >> > I should be able to turn this on with 'child_terminate' in php.ini >> > >> > However, I do this, and when I do a phpinfo(); it returns a: >> > >> > apache2handler with only three Directives: >> > - engine >> > - last_modified >> > - xbithack >> >>Are you running apache in multithreaded per chance? >> >> http://php.net/manual/en/function.apache-child-terminate.php >> >>Of course this begs the question why you want all php script's to >>terminage apache, this will only provide extra cpu usage. > > I have a download script that for some reason, seems to be consuming lots > of memory - no matter what I do. > > Someone suggested apache_child_terminate after the download is done, to > kill the apache process, and make sure that the memory is released back to > the OS. Just for fun, try putting an "exit;" at the end of the script. I've seen cases where PHP didn't seem to exit when it should, and would just sort of site there... I toss in 'exit;' and it works fine. I've never found a pattern to when this happens, and it's so easy to work-around I've never dug into it much... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php