Have you tried putting the problem call
outside of the function..ie ..call it from the
routine where you are calling the writechequetofile
function from and not within the writechequetofile function
itself.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
I tested it by calling the function directly at startup and it worked just fine.... I think maybe because my app is a cgi, since the request is made by the browser something has to be different... but still, it's the same code that is executed.... What's wrong here?