Hello,
I am a web designer, and to process a form I placed a PHP script in it. The script sends input to an e-mail and writes it to a comma-delimited file as well.
Well, I tested it on a Linux server and it works fine. However, when the IT guys placed it on a Windows 2000 server, the form does not process. I got this message from IT:

"I tried installing Apache Webserver for windows and it displays the script on the screen when submitted but does not run the form. Rick, Is there anyway you can convert PHP -> ASP?"

I was under the impression that PHP was OS-neutral.
Further, I do not know ASP and I can't imagine there is a "converter" out there. I also know very very little about Win Servers.
As far as permissions, it is 666 in Linux -- does Windows have a similar function as CHMOD? (tho I am unsure if that is indeed the problem).

Earlier, I sent them these 2 links that I thought might prove to be helpful:

http://www.microsoft.com.nsatc.net/technet/archive/interopmigration/linux/mvc/lintowin.mspx?mfr=true

http://www.php.net/downloads.php

But I am not sure if they are.
Does anyone know if there are any special things that need to be done/installed in order for Windows Server to run PHP?

Because of their length, I didn't want to copy/paste the entire code here, so
here is a link to the form:
http://www.goodwillsv.org/goodsalesform.html

Here is a link to the PHP script:
http://www.goodwillsv.org/goodsales_form-send.php

Can anyone help, I sure would appreciate it 🙂

Rick

    Tell IT to add these lines to "httpd.conf" and, assuming they installed Apache and PHP correctly otherwise, it should work:

    LoadModule php5_module "C:/php/php5apache2.dll"
    (Or something similar, depending on the versions. Check the docs.)
    AddType application/x-httpd-php .php

      Hi Installer,

      Thanks much -- I will copy/paste what you recommended and send it to IT 🙂

      Rick

        They are just lazy and probably don't want to be bothered with making something they are in charge of actually work. If php is on the server they should have at least tested the install, I mean what is so hard with a one function single line (not counting the opening and closing of <?php and ?> <?php phpinfo(); ?> (less than 20 characters)

        Note I also noticed that you are using short tags <? and ?> the server might have them turned off so try adding the php to <? also for the Windows server.

          Hi Houdini,
          You know what, I am beginning to doubt that PHP is even installed on the server.
          If not, this link I initially gave them (and apparantly they ignored) is valid, no?
          http://www.php.net/downloads.php

          Also, I will add the long tags <?php as you recommended.

          Thanks much! 🙂

          Rick

            Rick just for the sake of actually knowing if PHP is on that server then just do a phpinfo and upload it and see what it does, if it comes bas as

            <?php phpinfo();?>

            Provided you write it that way then it is either not on there at all or it is imporperly instslled.

              For whatever reason, I have no access to upload anything there 🙁

                Write a Reply...