Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dream weaving calls the method of publishing articles in a certain period of time.

Shulou Source: shulou.com Published: 2022-06-02 05:08:03 11月14日 Update

Dream weaving calls the method of publishing articles in a certain period of time? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

How does dream weaving invoke articles published in a certain period of time?

Dream weaving DEDECMS calls articles published in a certain period of time.

Recommended study: dream weaving cms

/ / time limit (used to call recent popular articles, comments, etc.). The time here can only be counted to days, otherwise the cache function will be invalid.

/ / articles within 1 day when subday=1 is called

/ / call yesterday's article when subday=2

/ / when calling subday=3, get all the articles 2 days before

/ / get all articles within 7 days when subday=7 is called

If ($subday > 0) {if ($subday = = 1) {$ntime = gmmktime (0,0,0, gmdate ('m'), gmdate ('d'), gmdate ('Y')); $limitday = $ntime-($subday * 24 * 3600); $orwheres [] = "arc.senddate > $limitday";} else if ($subday = 2) {$ntime = gmmktime (0,0,0, gmdate ('m'), gmdate ('d'), gmdate ('Y')) $limitday = $ntime-($subday * 24 * 3600); $lomitday = $ntime; $orwheres [] = "arc.senddate > $lomitday & & arc.senddate"

< $limitday"; } else if ($subday == 3) { $ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); $limitday = $ntime -($subday * 24 * 3600)+(1*24 * 3600); $orwheres[] = " arc.senddate < $limitday "; } else if ($subday == 7) { $ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y')); $limitday = $ntime - ($subday * 24 * 3600); $orwheres[] = " arc.senddate >

$limitday ";} Thank you for reading! after reading the above, do you have a general idea of how to weave a dream and call a certain period of time to publish an article? I hope the content of the article will be helpful to all of you. If you want to know more about the article, please follow the industry information channel.

Tags: Article time time period content time method Hot question Learning function more look Cache Industry Information Information Channel Channel reference work help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Information Apple Linux vpn