Content-type: text/htmlX-Powered-By: PHP/4.3.10Set-Cookie: PHPSESSID=95be424668bfcccbaaed21783e48064f; path=/Expires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0Pragma: no-cache
解决方案 »
- Apache请教多域名服务器配置问题windows
- micecms 框架如何安装?
- PHP开发绝对不能违背的安全铁则(转载)
- 关于current_date
- [请教高手]数据集回写到数据库的一个问题
- php5.0.4安装了zend optimizer2.5.7后怎么没反应?
- 我要架设一个服务器,正在寻求合作者
- 请大家看看,这个如何实现?
- 如何在dreamware 中设定文本框及其它对象的高度?
- 为什么php不认mysql_connect(),用IE打开后报这样的错 Fatal error: Call to undefined function: mysql_connect() in /var/www/html/list
- PHP如何A文件如何从B文件中获取信息?非Form表格传递变量问题
- 大侠!帮帮我啊!
的办法呢????
不使用session_register注册session变量,而直接操作$_SESSION数组
不过这要视服务器上的php版本来定!通常供测试用的本地php环境设置应与服务器端一致
session_start();
session_register('chen');
$_SESSION['chen']="fasdfsadfsad";
?>
Content-type: text/htmlX-Powered-By: PHP/4.3.10Set-Cookie: PHPSESSID=181594c8923a9f36abc570b2f4918c3e; path=/Expires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0Pragma: no-cache
再看看session的路径改好.
session.save_path = c:/tmp 这个我也改了。。可还是出现
那个错误是为什么
<?
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
?>
<?
$_SESSION['count']++;
?>
You have been to this page <? echo $_SESSION['count']; ?> times.