Home >php教程 >php手册 >dede验证码错误问题,一行代码就可解决

dede验证码错误问题,一行代码就可解决

WBOY
WBOYOriginal
2016-06-06 19:33:361209browse

dede5.7验证码出现错误,无法显示时,打开文件/include/vdimgck.php,找到第24行下面加入一行用来清空(擦除)缓冲区并关闭输出缓冲,如下: $sessSavePath=DEDEDATA./sessions/;//下面加入 ob_end_clean();//要加的代码 记住千万不要加ob_flush()或ob_end_fl

dede5.7验证码出现错误,无法显示时,打开文件/include/vdimgck.php ,找到第24行下面加入一行用来清空(擦除)缓冲区并关闭输出缓冲,如下:

$sessSavePath = DEDEDATA."/sessions/";   //下面加入

ob_end_clean();  //要加的代码 

记住千万不要加 ob_flush()或ob_end_flush()之类的,赶紧试试吧 PHP
$sessSavePath = DEDEDATA."/sessions/";   
ob_end_clean();  //要加的代码 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php图片加水印类Next article:深入浅析用PHP实现MVC