« Previous Next »

Thread: violation error

Last post 07-03-2008 9:42 AM by Mike Peters. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-26-2008, 11:38 AM

    violation error

     Hi

    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?

    thx

    Mike 

  • 07-02-2008, 5:17 PM In reply to

    Re: violation error

    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
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-03-2008, 9:42 AM In reply to

    Re: violation error

     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.

     

    thx

    Mike 

Page 1 of 1 (3 items)
Microsoft Communities