{"id":199443,"date":"2025-05-03T13:06:40","date_gmt":"2025-05-03T05:06:40","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199443\/"},"modified":"2025-05-03T13:06:40","modified_gmt":"2025-05-03T05:06:40","slug":"ecshop%e6%8a%a5%e9%94%99mktime-you-should-be-using-the-time-function-instead-in","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199443\/","title":{"rendered":"ECShop\u62a5\u9519mktime(): You should be using the time() function instead in"},"content":{"rendered":"<p>ECShop\u5b89\u88c5\u4e4b\u540e\uff0c\u5728\u540e\u53f0\u53d1\u73b0\u4e00\u4e2a\u9519\u8bef\u63d0\u793a\uff1a<\/p>\n<p> Strict&nbsp;Standards:&nbsp;mktime():&nbsp;You&nbsp;should&nbsp;be&nbsp;using&nbsp;the time() function instead in E:\\web\\shopex\\admin\\shop_config.php on line 32<\/p>\n<p> \u8fd9\u4e2a\u9519\u8bef\u63d0\u793a\u7684\u610f\u601d\uff1amktime()\u65b9\u6cd5\u4e0d\u5e26\u53c2\u6570\u88ab\u8c03\u7528\u65f6\uff0c\u4f1a\u88ab\u629b\u51fa\u4e00\u4e2a\u62a5\u9519\u63d0\u793a\u3002<\/p>\n<p> \u627e\u5230\u6587\u4ef6\u7b2c32\u884c\uff1a<\/p>\n<p> $auth =&nbsp;mktime();<\/p>\n<p> \u5c06mktime()\u66ff\u6362\u6210time()\u65b9\u6cd5\uff0c\u4ee3\u7801\u4e3a\uff1a<\/p>\n<p> $auth = time();<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ECShop\u5b89\u88c5\u4e4b\u540e\uff0c\u5728\u540e\u53f0\u53d1\u73b0&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199443","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199443"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199443\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}