After fulfilling business request after request - with many short php web pages calling the function. Decided to progressing this further - by removing the web page altogether (hitting the function via a wrapper). Let it handle the query, via variable parameters passed in on the HTTP GET.
This posed a bit of problem, pushing complexity on the enquirer. So then decided to write a web (interface) form to drive the function (wrapper) - which subsequently made the query. :)