php info shows php working on IIS but the configuration file path still shows c:\windows

In addition, when I try a test page it comes up with a standard error:

There was an error while processing the form. The most common source of errors is the failure to fill in the Name and Email Address fields

which I assume is the default error code in the php page.

do I need to enable ; cgi.force_redirect = 1 ?

Also, I assume that I am using ISAPI because that is what I've allowed in IIS, but can i use both the php-cgi.exe and the ISAPI?

Firmin FrederickSenior IT ConsultantAsked:
Who is Participating?
Ted BouskillConnect With a Mentor Senior Software DeveloperCommented:
Yes you can use both.  If youve configured IIS correctly requests for PHP files will be sent to the php-cgi.exe and requests for ASP, ASPX et cetera will be sent to other Microsoft ISAPI DLL's for processing.

By the way, I'd suggest you hse the PHP ISAPI DLL to process PHP files.  It's actually faster than the EXE file.

We did it for our MediaWIKI and it works great and there was a noticeable improvement in performance.
Firmin FrederickSenior IT ConsultantAuthor Commented:
thanks for your response dude :) I'll stick with the ISAPI then...any ideas on the "cgi.force_redirect = 1" ?
Some people are suggesting it off, one guy ws adamant that it should be enabled - I've tried it both ways with no joy.  PHP is working to an extent...but not the way |I was hoping...any clues?
Firmin FrederickSenior IT ConsultantAuthor Commented: - this is the link to the guy who said use cgi.force...
Firmin FrederickSenior IT ConsultantAuthor Commented:
OK for anyone interested - the forms are being submitted sucessfully, turns out the smtp = localhost wasn't working and I had to change that to the mail server name.  Now forms are being submitted but I get form submit eror codes in the received emails :

The following error occurred in FormMail :
Error=Failed to send email

Once this error has been flagged PHP will not send user to the "thank you" htm page to show that the form submit was successful.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.