Problem with php ini (???)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renevencer13
    New Member
    • Jan 2007
    • 3

    Problem with php ini (???)

    From: renevencer13

    The following introductory program did not output its PHP script:

    <html>
    <head>
    <title>Exampl e of PHP (phpintro2) </title>

    <style type="text/css">

    h1 {font-size: 150%; color:green}
    h2 {font-size: 130%; color:red}
    h3 {color: green}
    h4 {color: maroon}

    span.highlight {background-color:yellow}


    </style>

    </head>
    <body>

    <div style="backgrou nd-image: url(http://renevencer12.50 1megs.com/bk304.gif);
    height:1200px;w idth:1200px;flo at:left;border-width:thick; border-color:red; border-style:solid;">
    <img src="http://renevencer12.50 1megs.com/pha_014.jpg" width="150" height="150" align="center" />

    [PHP]
    <?php
    echo "Hi, I'm a PHP script!";
    ?>

    [/PHP}>

    <h1> the php is supposed to print "Hi, I'm a PHP script!" </h1>

    <h1> if it print "Hi, I'm a PHP script!" in green, it is heading </h1>

    </div


    </body>
    </html>



    note that:

    "If PHP is not installed or the server didn't recognize the file's extension, you will see the source code of the script."

    I did not see any PHP source code, the php script did not work. How do I check this?

    Thanks

    renevencer13
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I ran it as TEST.PHP and as TEST.HTML and it executes fine, except for some make up flaws (take the [PHP] and [/php}> stuff out first. What file extension did you run it with PHP or HTML?

    Ronald :cool:

    Comment

    • renevencer13
      New Member
      • Jan 2007
      • 3

      #3
      Thank you RONVERDONK ( moderator)

      From: renevencer13

      the [PHP] .... [/PHP]> are not there, it does not output it's PHP script but the rest are ok.....

      Comment

      Working...