PDA

Click to See Complete Forum and Search --> : CGI Error


usamaalam
Mar 2nd, 2010, 07:18 AM
Hello Everybody,

I am trying to integrate word document with php. I have just one line in my code i.e. $word = new COM("word.application");.

When I run the page, it says on a message box "The instruction at 0x100ba8a8 referenced memory at 0x00000004. The memory could not be read."

On the page it says "The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:".

Any workaround for this?

Thanks.

kfcSmitty
Mar 2nd, 2010, 09:32 AM
What headers is it returning?

The only relevant response I could find was


well I guess it's kind of stupid
but the problem was solved by installing php as ISAPI instead of cgi which I don't know why it was installed that way .

it also solved some issues I had with the source encoding and hebrew which brought up some weird mysql chraset #16 unavailable msg in some pages (even that most of the other hebrew pages encoded the same way worked perfectly )

any way if your server runs Windows and php is installed as cgi shout at your stupid sysadmin to instal it as ISAPI

usamaalam
Mar 4th, 2010, 09:33 AM
Would you please tell me how to get the headers?

Thanks.

visualAd
Mar 14th, 2010, 05:09 AM
Could you tell me a little bit about your setup:

* Windows version.
* The version of PHP
* Web Server type and version (e.g. IIS / Apache)
* Running PHP as a CGI or a Module
* The version of Office / Word you have installed.