I am running WinXP home and I have Apache as my server, with PHP and MySQL. I am trying to run some simple test scripts on my computer using localhost but it does not work. So before I pulled my hair out, I uploaded them to my online hosting server and they worked fine.

Here is a link to the very simple script I am trying to run, which works fine:
www.sovereignwebdesign.com/php1.php

once you run the script, you will see that it is extremely simple. I have however built the whole web page using php (ie: print ("<html>"); etc.) when you run it from that link, you see the numbers you entered and the value returned, but when I run the same script from localhost, it does not show the values entered or the value returned, but everything else (the rest of the text) shows up.

I also had a problem running a simple newsletter submission form from my localhost, but samething, no luck, but it works perfectly from the web server.

i am guessing that it is something to do with my php.ini file, but I am not sure what to change.

Any insight?

Thanks

Rob

    Not locally on my computer, service provider offers it, but it should not effect localhost on my computer?

      Can you configure this firewall? It may stop traffic from accessing your server, or it may be stopping certain Apache files from accessing the server.

        did you use register globals on you webserver and not on your home system?

          Is the global variable setting in the apache config file or in the php config file?

          I have not access to or control over my ISP's firewall.

            Well, that fixed it.

            However, does that pose a security risk? Or is that only for commercial use servers, not my localhost server?

            Thanks

              Write a Reply...