Php tags

Discussion in 'PHP' started by Alice24, Mar 3, 2011.

  1. #1
    hello everybody. i'm here asking for help again. can anybody tell me what is an TAG ? and how are these indexed by google ... i mean how can be site found by this tags.
    and also how can i create tags in php for my web site
    thank you.
     
    Alice24, Mar 3, 2011 IP
  2. dgreenhouse

    dgreenhouse Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't have link privileges yet, but go to wiki and lookup Meta_element
     
    dgreenhouse, Mar 4, 2011 IP
  3. property

    property Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <script type="text/php" >
    </script>
     
    property, Mar 5, 2011 IP
  4. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #4
    <meta name="resource-type" content="document" />
    <meta name="distribution" content="global" />
    <meta name="copyright" content="2011 G3n3s!s />
    <meta name="keywords" content="your,tags,here" />

    there are html tags but I have no idea what do you mean with php tags
     
    G3n3s!s, Mar 5, 2011 IP
  5. add13n

    add13n Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    more specific please, i don't even understand with your question about making php tags
     
    add13n, Mar 5, 2011 IP
  6. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #6
    The php tags are: <?php and ?> or <? and ?>. The script between these tags will be executed on the server and the page request, and not shown, and thus not indexed by google.

    I'm not sure if this really is were you asked for, and if it's not, please clarify your question.
     
    ssmm987, Mar 5, 2011 IP
  7. Alice24

    Alice24 Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    maybe i didn't know how to ask . sorry for that
    @dgreenhouse i was on the wiki and i find the correct description :
    "In online computer systems terminology, a tag is a non-hierarchical keyword or term assigned to a piece of information (such as an Internet bookmark, digital image, or computer file). This kind of metadata helps describe an item and allows it to be found again by browsing or searching. Tags are generally chosen informally and personally by the item's creator or by its viewer, depending on the system.
    Tagging was popularized by websites associated with Web 2.0 and is an important feature of many Web 2.0 services."
    [​IMG]
    i uploaded here a photo and the tag is subtitrare three rivers - sezonul 1 these means when somebody search on google exactly these words subtitrare three rivers - sezonul 1 the site will apear in the search.
    my question is how to create this tags in my site to be found (and indexed) by google.
     
    Alice24, Mar 5, 2011 IP
  8. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Simple and straightforward.

    Its a way of link back to the same page via via the same page.
    For example.
    Your name is John Smith, you have page 1.
    you create a link called John smith which links to the page with title john smith and then that page 2 has a link which with text equal to ur title of page 1. So you just gave urself a 3 way link from within ur website, thus, increased that pagerank for that site!

    got it?
     
    eleetgeek, Mar 5, 2011 IP
  9. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #9
    that's for search engines (google or internal search)
     
    G3n3s!s, Mar 6, 2011 IP
  10. Alice24

    Alice24 Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #10
    @eleetgeek thank you i undestend now... but only one quest
    like G3n3s!s says <meta name="keywords" content="your,tags,here" /> is there a way to put like these <meta name="keywords" content="$tags" /> where $tags='subtitrare three rivers - sezonul 1' ? on every page to generate other tags and to be included like keywords ... or is just a stupid think.
     
    Alice24, Mar 6, 2011 IP
  11. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #11
    Alice: it should be in description. you have to fill variable

    $title = $your_dynamic_title;

    and then place it there

    <meta nem="description" content="<?php echo $your_dynamic_title; ?>" />

    keywords are ONLY KEYWORDS separated with comma
     
    G3n3s!s, Mar 7, 2011 IP
  12. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    no php tags are indexed by google as google never sees this php is server side and google can only see client side (html or javascript outputted by php)
     
    srisen2, Mar 7, 2011 IP
  13. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #13
    I have a small tutorial on my site about tags and the tag system, feel free to look it up on my profile. Can't link just yet i'm afraid ^^
     
    awood969, Mar 7, 2011 IP
  14. Alice24

    Alice24 Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #14
    Ok now i undestend. Thank you all for posting.
     
    Alice24, Mar 7, 2011 IP