#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Redmond
    Posts
    3
    Rep Power
    0
    I have Created my First PHP Page

    <HTML>
    <HEAD><TITLE>Our first PHP3.0 script</TITLE></HEAD>
    <BODY>
    <CENTER>Our first PHP3.0 script</CENTER>
    <?
    $today = date("Y-m-d");
    PRINT "<CENTER>Today is: $today.</CENTER>";
    ?>
    </BODY>
    </HTML>
    When I View the page in Browser I cannot see what is printed in the Browser . Can anyone take sometime and tell me why is it not working ?

    Thanks,

    Bill
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    15
    Worked fine for me: http://www.ledscripts.com/asdf.php3

    That's exactly what you had.

    That server's running php4, so manybe php3 had as bug that doesn't run the code right or something.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    56
    Rep Power
    15
    BillGate,

    You have to have a server running on the machine. A server that support PHP. Have the server running, and enter in the browser "localhost" to access it through your server.

    the thing is that our browsers doesn't know any PHP. It's the server that's translating these codes into HTML.

    --Ben.

IMN logo majestic logo threadwatch logo seochat tools logo