SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Sep 2001
    Location
    Lillesand, Norway
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with Kev's PHP & SQL article

    I have tried to make my first PHP script, but it didn't work.

    Here's the code:

    <HTML>
    <HEAD>
    <TITLE>Today's Date</TITLE>
    </HEAD>
    <BODY>
    <P>Today's Date (according to this Web server) is:
    <?php



    echo( date("l, F dS Y.") );


    ?>
    </BODY>
    </HTML>

    When i made a link from one webpage on my PWS (personal web server), and tried it, it didn't show any date! Can the problem be that i have not installed PHP properly?
    signature

  2. #2
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can easily tell if you have php installed by using the test script. php info I think

  3. #3
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this:
    PHP Code:
    <html>
    <head
    <title>PHP Info</title>
    </head>
    <body>
    <?php
    phpinfo
    ();
    ?>
    </body>
    </html>
    Now, save that as whatever you want. Go to that script on your site, and if it loads a bunch of info about php, then you have it installed, otherwise it's not.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*


Bookmarks

Posting Permissions

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