/**
* 获取本周所有日期
*/
function get_weeks($time = '', $format='Y-m-d'){
$time = $time ? : time();
//获取当前周几
$week = date('w', $time);
$date = [];
for ($i=0; $i<=6; $i++){
$date[$i] = date($format ,strtotime( '+' . $i-$week .' days', $time));
}
return $date;
}
}
//
if (!function_exists("get_week_data")){
/** 获取当前时间以前时间
* @param int $num 天数
s | /xin.html |
USER | www |
HOME | /home/www |
HTTP_HOST | www.asmhealth.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.asmhealth.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.31.76.79 |
REMOTE_PORT | 46840 |
REMOTE_ADDR | 3.88.254.50 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.asmhealth.cn/php/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /xin.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/xin.html |
SCRIPT_FILENAME | /www/wwwroot/www.asmhealth.cn/php/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711679395.1967 |
REQUEST_TIME | 1711679395 |
APP_PATH | /www/wwwroot/www.asmhealth.cn/php/public/../application/ |