49 users online (1 members and 48 guests)  

Thread: PHP Help


  Results 1 to 4 of 4
  1. #1
    Coke21's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Posts
    3

    PHP Help

    I just started trying to use PHP and I'm having trouble doing it.

    Here is my code and I'm wondering why "PHP Test" won't show up:



    <HTML><HEAD><TITLE>Title</TITLE></HEAD>

    <BODY>


    <?php echo "PHP Test"; ?>

    </BODY>
    </HTML>



    Any help would be appreciated!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    For the server to know that your code is php, the page/file needs to be saved as a .php or .php3 extension. eg myfile.php . Whats yours called?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Coke21's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Posts
    3
    Darn it, I accidentally had .pjp. Guess I must have made a typing error when saving the file. Thanks for your help I probably would have never noticed that if you hadn't made me go back and check.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    np. Glad its working.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread