下了源代码,提示如下: Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in D:\usr\webroot\inc\config.inc.php on line 5Fatal error: require() [function.require]: Failed opening required 'config.php' (include_path='.;C:\php5\pear') in D:\usr\webroot\inc\config.inc.php on line 5对PHP不熟看不出来原因,源码里确实没有那几个文件
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mocz5wnr/public_html/ok112.com/guestbook/index.php on line 25源码还没看。 分页部分处理不严格吧? 要记得所有的用户输入都是不可信的 都需要进行严格的过滤
http://www.ok112.com/guestbook/?page=a
可以, FCKEditor加载速度有点慢 error.php有以下报错 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mocz5wnr/public_html/ok112.com/guestbook/error.php:1) in /home/mocz5wnr/public_html/ok112.com/guestbook/error.php on line 1 文件编码有问题?
Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in D:\usr\webroot\inc\config.inc.php on line 5Fatal error: require() [function.require]: Failed opening required 'config.php' (include_path='.;C:\php5\pear') in D:\usr\webroot\inc\config.inc.php on line 5对PHP不熟看不出来原因,源码里确实没有那几个文件
原因很简单这是楼主用的绝对路径
例如
include('/config.php');你把里面的/去掉即可但是很多地方应该都用了绝对路径,我推荐你干脆就放到根目录下吧
FCKEditor加载速度有点慢
error.php有以下报错
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mocz5wnr/public_html/ok112.com/guestbook/error.php:1) in /home/mocz5wnr/public_html/ok112.com/guestbook/error.php on line 1
文件编码有问题?