ChinaUnix.net
相关文章推荐:

php站点后台验证码不显示

在 /etc/php.ini 中 把: display_errors = Off 改为: display_errors = On 即可在Apache中显示出错的调试信息。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/23044/showart_158459.html

by dooob - php文档中心 - 2006-08-21 17:01:23 阅读(759) 回复(0)

相关讨论

//产生的验证码 private $mCheckCode = ''; //验证码的图片 private $mCheckImage = ''; //干扰像素 private $mDisturbColor = ''; //验证码的图片宽度 private $mCheckImageWidth = '80'; //验证码的图片宽度 private $mCheckImageHeight = '20'; /** * * @brief 输出头 * */ private function OutFileHeader() { header ("Content-type: image/png"); } /** * * @brief 产生验证码 * */ pri...

by whzhoumin - php文档中心 - 2009-05-04 20:50:01 阅读(1162) 回复(0)

原文转自: http://hi.baidu.com/aspboy/blog/item/34107ecf2dad363df8dc61fc.html 几个GD函数堆砌出来的玩意,只要搞定怎样把中文写到图片上就可以了,因为GD函数只接受UTF8格式编码的文字,所以在写文字前首先要进行编码转换。php自带的iconv和mbstring库都可以完成这项工作,但一般的虚拟主机很少支持,所以要自己写个,像这里用gb2utf8完成这项工作。当然如果你的页面就是以UTF8格式存储的,就可以省去这些额外工作。 ...

by linxh - php文档中心 - 2007-06-11 22:33:44 阅读(713) 回复(0)

?php /** * @name 验证码类 * @author BianJiang * @since 2007-06-07 * @link liuxingyuyuni.cublog.cn * @history * */ class IndentifyCode { private $img; //验证码图像类型 private $imgType; //验证码图片宽度 private $imgWidth; //验证码图片高度 private $imgHeight; //验证码字符串 ...

by liuxingyuyuni - php文档中心 - 2007-06-07 03:11:16 阅读(530) 回复(0)

成功显示php图片验证码,不知道接下来做什么? 我的php验证图片显示成功- -名称 number1.php 代码如下 php Header("Content-type: image/PNG"); srand((double)microtime()*1000000);//播下一个生成随机数字的种子,以方便下面随机数生成的使用 $im = imagecreate(62,20); //制定图片背景大小 $black = ImageColorAllocate($im, 0,0,0); //设定三种颜色 $white = ImageColorAllocate($im, 255,255,255); $gray = ImageC...

by cixi2010 - PHP - 2008-06-28 18:40:39 阅读(2349) 回复(3)

验证码。在Windows主机下没有任何问题。。 换了个linux 主机就不行了。。背景图片能正常绘制出来,但验证码没有显示。。。。。 [code] php // $refererhost = parse_url($_SERVER['HTTP_REFERER']); $refererhost['host'] .= !empty($refererhost['port']) ? (' :'.$refererhost['port']): ''; if ($refererhost['host'] != $_SERVER['HTTP_HOST']) { exit('Access Denied'); } // session_start(); //图片类型 header("Con...

by soai - Web开发 - 2008-05-05 11:48:37 阅读(5319) 回复(3)

现在是这样 http://www.abc.com/ 直接就是显示http://www.abc.com/index.php 如何能让他访问http://www.abc.om/ 显示的就是http://www.abc.com/

by sqp1982 - 服务器应用 - 2008-01-10 11:38:50 阅读(3152) 回复(3)

我想调用now.php 在now.php输入 echo "ceshi"; 结果什么都没有,这是为什么

by worldwar - PHP - 2007-02-25 21:18:52 阅读(1456) 回复(1)

今天用一个php的小例子测试配置的Linux+Apache+Mysql+php (LAMP)。没想到拔出萝卜带出一堆泥。多亏同学龚的帮忙,解决了问题,虽然问题的详细原因还不明,但这种方法的确解决了问题,也希望清楚这个问题根源 的朋友,麻烦告诉我。现将问题和解决方法记录下来. 1、问题: 文件index.php Web Database Sample Index "; echo " User Name Domain Name Request Date "; while ($r = mysql_fetch_array($resul...

by vic2005 - php文档中心 - 2006-05-21 23:18:30 阅读(1180) 回复(0)

看看内容吧,也许有用的。我的系统是RedHat8。 short_open_tag =On //php.ini Aaah, I see. Redhat seems to mess with all sorts of typical defaults, heck, even short_open_tag (default redhat8.0 php setup and that just isn't very nice. Although, maybe it's good to push people into learning stuff, like why it's important to read a php.ini :) link: http://www.phpbuilder.com/lists/php-general/2003041/0981...

by zhumao - php文档中心 - 2005-12-26 11:05:53 阅读(1030) 回复(0)

:em06: :em06: httpd.conf文件也改为:AddDefaultCharset GB2312 [code]网页头也加进了 ; ,其中LBL_CHARSET="gb2312" [/code] 可访问时却是乱码。查看源代码也都是中文,每次需要调整,查看-->;编码--》简体中文才能看到中文。 这是怎么回事呢,请帮忙 :em06: :em06:

by jsf008 - PHP - 2005-05-26 00:37:30 阅读(1720) 回复(7)