php is not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bce7097
    New Member
    • Oct 2009
    • 2

    php is not working

    hi frnds ..
    i was new to php.
    i had downloaded the wampserver2i and instaleed in my lap.
    and activated the server to online and started to run the php files,
    the local host is working but i was unable to access the php fiels ..
    what are the changes i should say pl..help me i am able to acces the index.php file

    Code:
    <HTML>
    <HEAD>
    <TITLE>My First PHP Page</TITLE>
    </HEAD>
    <BODY>
    <?php
    echo "Hello World!";
    ?>
    </BODY>
    </HTML>

    this i had save as echo.php
    and opened my browser and pened as



    it is showing page not found

    http error

    can any one help
    should i make any change to the settings or any other pl...
    Last edited by Dormilich; Oct 26 '09, 12:48 PM. Reason: Please use [code] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    from the error given it seems unrelated to PHP. either you didn’t rename the file correctly (some file systems are case sensitive) or you didn’t put the file in the server’s root directory (defined in the httpd.conf file).

    Comment

    • phpmagesh
      New Member
      • Nov 2008
      • 119

      #3
      Make sure that you have started your wampserver2i and its running fine.

      check following things:
      1. check by seeing the Apache error log file, whether server is started.

      2. After starting the server type the url http://localhost/ - it will open the default index page for the wamp server. (giving port number next to hostname will be easy to identify, like http://localhost:8080/)

      Comment

      Working...