html - Php Update Text Every Day -
i trying add php code website every week text on website update stored file quotes.txt have php code gave me need i'm not understanding how html , put on website here code.
$text = file("quotes.txt"); $search = array ("\r\n", "\r"); $text = str_replace($search, "\n", $text); $array = explode("\n", $text); $line = date("z"); echo $array[$line]; please help!
first need check first if hosting provider allows cron-tab jos, is, automatically run script every x time. if half way. otherwise way run script launching yourself, , might not idea!
Comments
Post a Comment