School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store | FORUMS

Class / Forums / homeroom Refresh the current page Basic To-Do Assignment
 

 (#281 2005-11-02 16:18:14) Post Reply

Goudarzi
Need To Set


Enrolled: Oct 2005
Posts: 9
AP: 1

<?php

// This program is going to show a different url for each day of the month

// Array of all URLs

$Url_Month = array('www.google.com',
'www.monarchknights.com',
'www.bellsouth.net',
'www.browardschools.com',
'www.altavista.com',
'www.yahoo.com',
'www.coralsprings.com',
'www.scriptschool.com',
'www.aol.com',
'www.jesus.com',
'www.msn.com',
'www.dogpile.com',
'www.mobileoilcan.com',
'www.vstrucking.com',
'www.scriptlance.com',
'www.getacoder.com',
'www.christ.com',
'www.maxpages.com',
'www.php.net',
'www.java.com',
'www.tdscripts.com',
'www.webmastercookbook.com',
'www.macromedia.com',
'www.microsoft.com',
'www.soccer.com',
'www.pingpong.com',
'www.basketball.com',
'www.golf.com',
'www.bob.com',
'www.dictionary.com',
'www.sparknotes.com');

// Array of the current day of the month

$Current_MonthDay = (date("j")- 1);

// Print Array choosing what day to show in the current day

print("$Url_Month[$Current_MonthDay]");

// End of Program

?>

 

 

View Previous Thread
Print this page Print This Page

View Next Thread

School Map:  Home / Enroll $ Student Records; Class  
$ News @ LIVE Tech Radio * Support/FAQ | Store

Advertising | Link To Us | Privacy 
Copyright 2000-2002 Script School Productions / KMR Enterprises 
No part of this website may be reproduced, copied and/or distributed in any medium 
without express written permission