首页上一页 1 下一页尾页 1 条记录 1/1页
PHP典型模块大全14章问题
发表在PHP图书答疑
2009-11-16
是否精华
是
否
版块置顶:
是
否
问三个问题
<1>运行一段时间后报如下错误
Warning: session_start() [function.session-start]: open(C:\WINDOWS\TEMP\\sess_75591ad6910265cb0d25c5c15a480941, O_RDWR) failed: Permission denied (13) in D:\www\MK\14\01\private_chk.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\www\MK\14\01\private_chk.php:2) in D:\www\MK\14\01\private_chk.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at D:\www\MK\14\01\private_chk.php:2) in D:\www\MK\14\01\private_chk.php on line 4
Warning: file(priv/) [function.file]: failed to open stream: No such file or directory in D:\www\MK\14\01\private_chk.php on line 6
private_chk.php代码如下
1<?php
2 session_start();
3 include_once 'config.php';
4 header("Content-Type:text/html;charset=gb2312");
5 $tmppath='priv/'.$_SESSION['user'];
6 $tmparr =file($tmppath);
7 $max = count($tmparr);
8 $tmpstr = '';
9 if($_SESSION['rollscreen'] != 1){
11 if($max > PRLINE){
12 $mix = $max - PRLINE;
13 }else{
14 $mix = 0;
15 }
16 }else{
17 $mix = 0;
18 }
19 for($i = $mix; $i<$max;$i++){
20 $tmpstr .= $tmparr[$i].'<br>';
21 }
22 echo $tmpstr;
23?>
怎么解决啊?
<2>还有在firefox上运行不了,状态栏一直显示“正在从localhost传送数据”
<3>在局域网内其它几电脑上登录时打开的窗口自己关闭了,但我的电脑上用户列表有显示
<1>运行一段时间后报如下错误
Warning: session_start() [function.session-start]: open(C:\WINDOWS\TEMP\\sess_75591ad6910265cb0d25c5c15a480941, O_RDWR) failed: Permission denied (13) in D:\www\MK\14\01\private_chk.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\www\MK\14\01\private_chk.php:2) in D:\www\MK\14\01\private_chk.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at D:\www\MK\14\01\private_chk.php:2) in D:\www\MK\14\01\private_chk.php on line 4
Warning: file(priv/) [function.file]: failed to open stream: No such file or directory in D:\www\MK\14\01\private_chk.php on line 6
private_chk.php代码如下
1<?php
2 session_start();
3 include_once 'config.php';
4 header("Content-Type:text/html;charset=gb2312");
5 $tmppath='priv/'.$_SESSION['user'];
6 $tmparr =file($tmppath);
7 $max = count($tmparr);
8 $tmpstr = '';
9 if($_SESSION['rollscreen'] != 1){
11 if($max > PRLINE){
12 $mix = $max - PRLINE;
13 }else{
14 $mix = 0;
15 }
16 }else{
17 $mix = 0;
18 }
19 for($i = $mix; $i<$max;$i++){
20 $tmpstr .= $tmparr[$i].'<br>';
21 }
22 echo $tmpstr;
23?>
怎么解决啊?
<2>还有在firefox上运行不了,状态栏一直显示“正在从localhost传送数据”
<3>在局域网内其它几电脑上登录时打开的窗口自己关闭了,但我的电脑上用户列表有显示