Results 1 to 3 of 3

Thread: print

  1. #1
    Join Date
    Oct 2002
    Posts
    2

    Unhappy print

    I am new to MYSQL and I have the a very simple program and it does not work:

    <HTML>
    <BODY>

    <?php

    print "test";

    ?>

    </BODY>
    </HTML>


    When I access this file with my browser I don't see the line "test".
    How come??

    Thank you very much.

  2. #2
    Join Date
    Oct 2002
    Posts
    1

    Post print

    Did you name the file with a .php extension? Or did you use .html? .php must be used unless XBitHack is set in the web server.

  3. #3
    Join Date
    Oct 2002
    Posts
    2

    Re: print

    Originally posted by jtsmoke
    Did you name the file with a .php extension? Or did you use .html? .php must be used unless XBitHack is set in the web server.
    I named the file index.htm.
    By now I know that I must call it
    index.php and it is working.
    Sorry for the simple question but I am
    entirely new to PHP.

Posting Permissions

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