how can i get part of any page body to be page description ?

Discussion in 'PHP' started by ramysarwat, Nov 8, 2009.

  1. #1
    how can i get part of any page body to be page description ?

    without using meta tags
     
    ramysarwat, Nov 8, 2009 IP
  2. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #2
    Get html inside body tags, strip all tags, chose piece ot text you like - here is your description.
    It is too general question.
     
    AsHinE, Nov 9, 2009 IP
  3. ramysarwat

    ramysarwat Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this is what i did alredy but the text still contain dates and times and user names
     
    ramysarwat, Nov 9, 2009 IP
  4. senthil_sivanath

    senthil_sivanath Member

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #4
    I thought from a different perspective.

    Try to get a longest paragraph or go through p tags or try to get first paragraph of a page.

    I think this is not correct :)
     
    senthil_sivanath, Nov 9, 2009 IP
  5. ramysarwat

    ramysarwat Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    any help how to do this ?
     
    ramysarwat, Nov 10, 2009 IP