We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

violation errorRSS

2 replies

Last post Jul 03, 2008 09:42 AM by Mike Peters

  • violation error

    Jun 26, 2008 11:38 AM|Mike Peters|LINK


    I'm attempting to run a php script accessing a mysql database with IIS.  Access to the db is fine (reading and inserting) but when I attempt to use a submit button on a web page I get the following error:

    PHP has encountered an Access Violation at 0177B74E

    I'm assuming it is trying to access a forbidden memory area.  I've configured php to use isapi.  Should it be configured for cgi?



  • Re: violation error

    Jul 02, 2008 05:17 PM|brashquido|LINK

    It shouldn't be an between using ISAPI or CGI. I have plenty of forms working perfectly using either. Anything in your PHP log?

    Dominic Ryan
    Microsoft IIS MVP
    IIS Aid
    IIS and Open Source
  • Re: violation error

    Jul 03, 2008 09:42 AM|Mike Peters|LINK

     No.  But i've narrowed the problem dowm a bit.  When I run the query with fixed values. it is ok.  But as soon as I put in a text field and try to pass the data as a variable the violation error occurs.

     Here's a cut down version of the query that doesn't work:

    $query = "INSERT INTO del_info(del_lname, del_fname,) VALUES ('$del_lname', 'smith')";

    $del_lname refers to the text field del_lname

    As you've probably guessed I've only recently stated working with php.