Calendar written in php. There are many calendars written in JavaScript on the internet. these calendars read local time and may be inaccurate. So I want to find a calendar written in php that can read the server time, but there are many calendars written in JavaScript on the internet. this calendar reads local time and may be inaccurate. So I want to find a calendar written in php that can read the server time, but I still cannot find a suitable one, so I tried to write it myself. Code copy box
0 & intval ($ HTTP_GET_VARS ['month']) <13 )? Intval ($ HTTP_GET_VARS ['month']): date ("m"); $ ynow = (isset ($ HTTP_GET_VARS ['Year']) & intval ($ HTTP_GET_VARS ['Year'])> 1969 & intval ($ HTTP_GET_VARS ['Year']) <2038 )? Intval ($ HTTP_GET_VARS ['Year']): date ("Y"); $ mtime = mktime (0, 0, 0, $ mnow, date ("d "), $ ynow); $ f = date ("w", mktime (0, 0, 0, $ mnow, 1, $ ynow)-1; echo" "; Echo" $ I % 7 = 6 )? "Class = \" calendarw \ "": ""). ">"; if ($ I> $ f) echo $ I-$ f; echo""; If ($ I % 7 = 6) echo"";} If ($ I % 7 <6 & $ I % 7> 0) echo"
"; Echo"
<". $ Ynow."> |
<". Date (" M ", $ mtime)."> |
"; Echo"
S |
M |
T |
W |
T |
F |
S |
"; For ($ I = 0; $ I
|
"; If ($ I % 7 = 6) echo"
|
"; Echo"
";?>
[Ctrl + A Select All and copy]
Bytes. So I want to find a calendar written in php that can read the server time,...