日度归档:2013-08-20 周二

使用PHP农历与公历互相转换类 ,主要实现了由公历计算农历 、由农历转公历等功能,通过这个类可以将单个日期转换公历或农历,同样支持整个月份的转换,即给定一个公历月份计算农历。(注:此类支持的年份范围是 1891年~2100年,如果超出此范围的年份将无法转换。此日期转换类暂时未实现节气和中国节假日。)

默认最小处理年份:1891
默认最大处理年份:2100 继续阅读 PHP农历与公历互相转换类

PHP is not limited to outputting html. PHP can output images, pdf, javascript files, etc. Browsers determine what type of content is by analyzing the headers sent. In this tutorial I will present you with some examples of how to send headers. To send PHP header use the function header(). You must call this function before any output. Use the function headers_sent() to check whether the headers have been sent and output started. 继续阅读 php常用的header:301,302, Redirects, 404, Javascript, Download, Authentication dialog Headers