Help with Php for Google news

Discussion in 'Programming' started by cheetuh, Dec 22, 2006.

  1. #1
    hi. i run http://www.britneyfans.org and i would like to be included in google news. i already have permalinks generated by a script called cutenews.ru but to get in google news i have to have the permalink ending at leats with 3 random numbers. im my permalink code i have this php code:

    post = "{year}/{month}/{day}/{title}.php"


    how can i generate a new code with at least 3 numbers ( has to be unique so its better to have more) does anyone know?

    check my page to see how the permalink works.

    thanks in advance
     
    cheetuh, Dec 22, 2006 IP
  2. Tim_Myth

    Tim_Myth Peon

    Messages:
    741
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #2
    post = "{year}/{month}/{day}/{title}".hash({title})."php"

    That will create an MD5 hash for you. The hash will make it unique and it will always be constant.
     
    Tim_Myth, Dec 24, 2006 IP