Guys and Gals.

Sorry if I keep pestering you people for the answers, but this one should be the final one to get me up and running with PHP using Apache as the web server.

I have uploaded a small php program into the apache root area i.e c:\program files\apache group\apache\htdocs\, the stntax as follows :

<?

phpinfo();

?>

When I try to load this, a command prompt pops up showing all details about php i.e. licenes etc, the display also shows all tags etc.

Is this suppose to happen ?
I am sure it was suppose to pop up in the browser ? any ideas where I went wrong ?

Many Thanks

Fuzz

    Ryan,

    Thanks for the interest, I ran the following script :

    <?

    phpinfo();

    ?>

    and the command prompt came up with actual php and html code on the screen. I thought that the information would be display in proper html/php format in the browser.

    Any ideas where I am going wrong. I am sure I have to enable the browser to accept the script but I also thought that apache would deal with this for me.

    Many Thanks

    Sunit Modi

      Will your php print anything?

      Try just
      <?

      print "HELLO WORLD";

      ?>

      just to test your php, if that works then

      <?
      print phpinfo();
      ?>

      should work, if Hello world isn't printing then its probably configuration or installation problem.

        Ryan,

        Thanks for help, it all up and running now.... I think.

        Fuzz01

          Write a Reply...