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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -