Hi every 1! i have been coding various stuff for a couple of years now but i cant work this 1 out. I have a website that is soon starting an internet radio station. 🆒 cool... any way, im usin windows media encoder and you can see/ hear what im broardcasting through a browser via medi player. However, if i want another DJ to do a show from their computer, i cant have mi computer on all the time. -wel that wouldnt work anyway... So i need a php script that will change the ip address that the player points to depending on the date time. I have worked out something but it only changes the day - well im not sure if it even does that. I need it to change the ip from 4:00pm - 5:00pm GMT on a wednesday - or other days etc.. here is what i have so far...
<?php
$computerip = '';
$gmdate=gmdate(l);
if ($gmdate == Wednesday) {
$computerip = 'bobs ip';
} else {
$computerip = 'james ip';
}
?>
james being me and bob being another person - il obversily change that to an ip..
PLEASE HELP :-p!!
Jamez.
http://www.4unetwork.co.uk