Results 1 to 4 of 4

Thread: CGI Error

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    CGI Error

    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.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: CGI Error

    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

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: CGI Error

    Would you please tell me how to get the headers?

    Thanks.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: CGI Error

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width