-
You can just do:
PHP Code:
<?php
$includes = array(
"Monday" => "monday.html",
"Tuesday" => "tuesday.html",
"Wednesday" => "wednesday.html",
"Thursday" => "thursday.html",
"Friday" => "friday.html",
"Saturday" => "saturday.html",
"Default" => "default.html"
);
$day = ucfirst(date('l'));
if(isset($includes[$day])){
include("/hsphere/local/home/makukulo/fotogenicos.net/seleccao/byremus/".$includes[$day]);
} else {
include("/hsphere/local/home/makukulo/fotogenicos.net/seleccao/byremus/".$includes['Default']);
}
?>
-
Thanks
Works,
But,today show the file from saturday.
-
I'm glad to help you fer! Your welcome!
What do you mean by "but, today show the file from saturday?"
-
Thanks,
I'm forgot ,the server have the time zone from New york and I'm in Portugal/Lisbon more 5 hours and is Sunday. :)
Thanks for your help
Fernando
-
It's possible make same changes in this code to change at 00:00 am portuguese hour.
-
Instead of using days you want it to change at 00:00 AM portuguese hour? Is that what you want(sorry, I didn't fully understand)
-
Yap,my english is very poor.Sorry
For example
Now, the script just include the file from sunday at 5:00 am portuguese hour.My question is,it's possible same code because the time difference between the time server and local time.
Hope you understand :|
-
Ok, I'll see what I can do, but should it use Monday, Tuesday, *day, for other time zones?
-
Hi,
The code work's good.
Thanks,
I only need the Portuguese time zone.More 6 hours.
Thanks for your great help.
-
I will try this code to see if work's.
PHP Code:
putenv('TZ=Europe/Lisbon');