The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 3 of 3

Thread: Problems with first PHP

  1. #1

    Problems with first PHP

    I am having problems with get php to show up in my browser. I am using xampp. Heres the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />

    <title>XHTML Template</title>
    </head>

    <body>
    <?php
    phpinfo();
    ?>
    </body>
    </html>



    I have tried to connect with 127.0.0.1 or http://localhost, and nothing works. going to localhost shows the me XAMPP saying everything is working. I am typing http://localhost/phpinfo.php in the browser. I am going to look around more to see what I can find but am lost on what to do or check or setup.. lol Thanks for anyhelp.


    Edit--- I did not have files in the htdocs folder so it had no idea were to look.
    Last edited by kinwald; October 15th, 2009 at 12:50 AM.

  2. #2
    localhost displaying the xampp 'successful configuration' screen means everything should be working correctly. What is the name of the file, and where is it located on your machine (the full path)?
    "Give me the place to stand, and I shall move the earth" - Archimedes
    "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." - Bertrand Russell

  3. #3
    I think I have it for now. When I edit the index file in htdocs it shows up. not the code above but just a simple
    <?php

    echo "hello";

    ?>

    I think something was wrong with the one above.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012