I need a little help with some code for time stamping.
I want to include a page once a day when the page is visited.
My host has cron but it isnt working correctly and they will not help me solve the issue so here I am.
example of what I am trying to do.
Server on West Coast
Users on East Coast
date_default_timezone_set ("US/Eastern");
$current_timestamp = time();
$new_timestamp = add 24 hours to $current_timestamp
if $current_timestamp > than $new_timestamp
include ("page.php");
Thanks in advance
I need a little help with some code for time stamping.
I want to include a page once a day when the page is visited.
My host has cron but it isnt working correctly and they will not help me solve the issue so here I am.
example of what I am trying to do.
Server on West Coast
Users on East Coast
date_default_timezone_set ("US/Eastern");
$current_timestamp = time();
$new_timestamp = add 24 hours to $current_timestamp
if $current_timestamp > than $new_timestamp
include ("page.php");
Thanks in advance
|
|
Search Webmaster Help and Solution
Help with timestamp codeRelated ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
