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

Started on the old forum in April 2011 · view the original in the archive · old links redirect here

1 reply · 511 views · started 15 years ago · 1 min read

2 participants
MOBIFREAK Newbie · 5 posts #1

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?

<?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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close