New to PHP

Discussion in 'PHP' started by daones, May 9, 2007.

  1. #1
    I just opened a directory using PHP 2.1.2. Its my first time using php on all other sites i only used HTML. my directory is http://www.fesu.net. Do i need to insert meta tags? If so how can i input the meta tags? Also where would i be able to input adsense codes if i want to put them in later?
     
    daones, May 9, 2007 IP
  2. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PHP Pages generally are like HTML Files. The PHP functions are just between the

    <?
    
    ?>
    Code (markup):
    codes.

    Yes, you can add the meta tags like you normally do for a HTML File.

    Of course, one advantage of the PHP tag is the 'include' function which allows several pages to be included and merged into a single page which is a neat method of templating. If that is the case, check to see if there is a page call 'header.php' which you can use to include your meta tags.
     
    eddy2099, May 9, 2007 IP
  3. rahmat

    rahmat Active Member

    Messages:
    270
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Hey, you can add the HTML code, such as meta tags, adsense code, outside the php block mentioned by eddy2099.
     
    rahmat, May 10, 2007 IP
  4. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Thanks for the help! I found the header.php file and got my meta tags on. Just need to mess around with adsense now.
     
    daones, May 10, 2007 IP