送个浮动菜单给各位
http://www.homello.com.cn/member/manage/test.htm 另存就...
作者 dtalan 发布于 0000-00-00 分类:php基础编程
<?php
Session_start();
$Name = "这是一个Session例子";
Session_Register("Name");//注意,不要写成:Session_Register("$Name");
Echo $_SESSION["Name"];
//之后$_SESSION["Name"]为"这是一个Session例子"
?>
Warning: Undefined index: Name in c:program filesapache groupapachehtdocs est.php on line 5
逛论坛交流:运行后提示为:
可以呀。。。运行正常。。嘻。。
为什么程序运行结果得不到 "这是一个Session例子" ??
11:为什么我升级PHP后,原来的程序出现满屏的 Notice: Undefined variable:
这是警告的意思,由于变量未定义引起的.
打开php.ini,找到最下面的error_reporting,修改为error_reporting = E_ALL & ~E_NOTICE
对于Parse error错误
error_reporting(0)无法关闭.
如果你想关闭任何错误提示,打开php.ini,找到display_errors,设置为display_errors = Off.以后任何错误都不会提示.
那什么是error_reporting?
3 条回复
回复