« Previous Next »

Thread: fcgiext.dll and Javascript execution

Last post 11-17-2009 6:15 PM by brashquido. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 11-16-2009, 5:27 AM

    • Mike2010
    • Not Ranked
    • Joined on 11-16-2009, 10:04 AM
    • Posts 2

    fcgiext.dll and Javascript execution

    I have been struggling with configuration issues for several days while migrating my web server from Linux to Windows and would appreciate some help.  My Windows development box is Windows XP SP3,  IIS 5.1, SQL Server Express 2008, PHP 5.2.11.

    Originally for the .PHP application mapping, I incorrectly chose php-cgi.exe.  This caused SQL Server connections to take several seconds.  Later I discovered that the recommended mapping for .PHP is fcgiext.dll.  Once I made this change, all SQL Server connection performance issues disappeared. 

    However, my web page has javascript that should execute while the page is loading.  I found that choosing fcgiext.dll instead of php-cgi.exe causes all javascript to execute after the page loads even if the javascript is in the head section.  It makes no difference if the javascript is embedded in the html or in an external file.

    Can anyone tell me how to get javascript to execute while the page loads with fcgiext.dll?

    Thanks,
    Mike

  • 11-16-2009, 8:23 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: fcgiext.dll and Javascript execution

    Can you try setting ResponseBufferLimit to 0 in fcgiext.ini? This will disable response buffering. Read more about this setting here.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 11-16-2009, 8:58 PM In reply to

    • Mike2010
    • Not Ranked
    • Joined on 11-16-2009, 10:04 AM
    • Posts 2

    Re: fcgiext.dll and Javascript execution

    Kanwal,

    Thanks, that worked!  I really appreciate it.

    Just in case anyone else runs into this issue. ResponseBufferLimit=0 has to be in the appropriate application section of fcgiext.ini.  In my case, it had to go in the [PHP] section.

    Regards,
    Mike

  • 11-17-2009, 6:15 PM In reply to

    Re: fcgiext.dll and Javascript execution

    I've also noticed this Kanwal. Is there any other way of ensuring javascript is processed correctly without disabling the buffer. Could IgnoreExistingFiles or IgnoreExistingDirectores be used for this?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (4 items)
Microsoft Communities