[HELP] RaNDOM LiNK RoTAtioN AT DEFINED TiME >>>>

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [HELP] RaNDOM LiNK RoTAtioN AT DEFINED TiME >>>>

    Hello to all coding-talk members and staff,

    i am trying to create a random link rotation script which can rotate links at predefined time.But i am facing trouble in this as i am just a beginner and not so perfect in this php things.

    but i need this very badly

    So Here's my source code, please have a look on it and tell me what step i am skipping and how it can be improved for better results?

    Code:
    <?php
    date_default_timezone_set("Asia/Calcutta");
    $t=date("h.m");
    
    if($t<'2.14')
    $id='http://abc.com'; 
    
    else if($t<'2.16')
    $id='http://xyz.com'; 
    
    else if($t<'2.58')
    $id='http://coding-talk.com'; 
    
    else if($t<'12.00')
    $id=http://coding-talk.com/forum.php'; 
    
    echo"<a href='$id'>tittle</a>";
    
    ?>
    it is just not rotating the links at defined time or may be i am skipping something, a little help would be appreciated so kindly help me to solve this problem.

    Thanks

    #2
    m is months
    i is minutes

    Comment

    Working...
    X