二个日期的比较,如何得到二个时期相差...
2003-09-12 2003-12-12 如何得到二个时期相差的天数?
作者 wohugb 发布于 2003-09-02 分类:php基础编程
源码如下: <? /* ------------------------------------------------------------------------ * test.php * ------------------------------------------------------------------------ * PHP4 Customer Session Handler Test Script * Version 1.00 * by Ying Zhang (ying@zippydesign.com) * Last Modified: May 21 2000 */ /* default to DBM handler */ if (! Isset($handler)) { $handler = "mysql"; } /* default action is increment */ if (! Isset($action)) { $action = "increment"; } /* load up the appropriate session handling script, depending on the handler */ if ($handler == "dbm") { include("session_dbm.php"); } elseif ($handler == "mysql") { include("session_mysql.php"); } else { echo "
逛论坛交流:session提示错误,怎么回事啊?
session_start();
前不能有输出
Warning: Cannot send session cookie - headers already sent by (output started at D:servervipgbsession_mysql.php:164) in D:servervipgb est.php on line 34
Warning: Cannot send session cache limiter - headers already sent (output started at D:servervipgbsession_mysql.php:164) in D:servervipgb est.php on line 34
谢谢 试试
<?
/* ------------------------------------------------------------------------
* test.php
* ------------------------------------------------------------------------
* PHP4 Customer Session Handler Test Script
* Version 1.00
* by Ying Zhang (ying@zippydesign.com)
* Last Modified: May 21 2000
*/
/* default to DBM handler */
if (! Isset($handler)) {
$handler = "dbm";
}
/* default action is increment */
if (! Isset($action)) {
$action = "increment";
}
/* load up the appropriate session handling script, depending on the handler */
if ($handler == "dbm") {
include("session_dbm.php");
} elseif ($handler == "mysql") {
include("session_mysql.php");
} else {
$echo="Session Test Script
<?
if($echo)
{echo "";
echo "
";
}
?>";
echo " ";
echo "";
echo $echo;
echo " ";
echo "
把设置session放在最前面
Warning: Cannot send session cookie - headers already sent by (output started at D:servervipgbsession_dbm.php:112) in D:servervipgb est.php on line 34
Warning: Cannot send session cache limiter - headers already sent (output started at D:servervipgbsession_dbm.php:112) in D:servervipgb est.php on line 34
Fatal error: Call to undefined function: dbmopen() in D:servervipgbsession_dbm.php on line 48
Fatal error: Call to undefined function: dbmclose() in D:servervipgbsession_dbm.php on line 55
错误提示没了 可是程序不好用了
QUOTE:
我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)
昵称: 请输入验证码:
抢着回答
10 条回复
回复