Log in

View Full Version : Different Page of the week



Moh
26-10-2006, 01:00 AM
I posted this before, but no 1 helped me. I need a script which will change the page on each day of the week.

Monday - url.php
Tuesday - url2.php
Wednsday - url3.php
etc.....

Can any one help me plz :D

Mentor
26-10-2006, 02:35 AM
Use a data script combined with ether a header redirect or include... its painfuly simple to do "/

Moh
26-10-2006, 03:29 PM
Use a data script combined with ether a header redirect or include... its painfuly simple to do "/
thats very help full

Ini
26-10-2006, 03:56 PM
Theres a tutorial somewhere on Pixel2life (http://pixel2life.com) i read it yesterday

Dentafrice1
28-10-2006, 04:11 AM
<?
$day = date("l");
header("Location: http://www.mysite.com/days/$day.php");
?>

That should work.. not tested let me test tho right fast

EDIT: Works perfect. It goes to:
Example: (Uppercase)S(lowercase)aturday

So the S is always capital.

Name the files

Monday.php
Tuesday.php
Wednesday.php
Thursday.php
Friday.php
Saturday.php
Sunday.php

Want to hide these adverts? Register an account for free!