This works:
$comRef = com_load('valid.name');
$comOb = com_invoke($comRef,'method',518);
$text = com_get($comOb,'headline');
However, if this code comes at the end of script with another COM invocation of the same COM object, it fails. The only useful error I can get is "the cgi application failed to return a complete set of headers..".
PHP 4.1.2 IIS 5
Advice greatly appreciated. Thanks.