php验证码无法显示 - PHP / 基础编程
小弟疯了一天了,还没解决问题,请大虾赐教
我用下载的securimage来显示验证码,按理说这代码是没有问题的,然后我查了GD库也是打开的,运行phpinfo()可以看到是支持GD库了,但是验证码就是显示不出来,都是XX
另外我的系统是vista,查注册表也是支持验证码的,我在此系统下运行java代码的验证码页面都没有问题
把代码贴出来,写详细点。
example_form.php
<?php
session_start();
?>
<html>
<head>
<title>Securimage Test Form</title>
</head>
<body>
<?php
if (empty($_POST)) { ?>
<form method="POST">
Username:<br />
<input type="text" name="username" /><br />
Password:<br />
<input type="text" name="password" /><br />
<!-- pass a session id to the query string of the script to prevent ie caching -->
<img src="securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>"><br />
<input type="text" name="code" /><br />
<input type="submit" value="Submit Form" />
</form>
<?php
} else { //form is posted
include("securimage.php");
$img = new Securimage();
$valid = $img->check($_POST['code']);
if($valid == true) {
echo &quo
相关问答:
请问,以下代码,为什么不管用?就str_replace这个函数,替换么有起作用?
PHP code:
$gg='<script type=\"text/JavaScript\">
alimama_pid=\"mm_14281022_2030060_8250750\";
alima ......
谁有PHP memcached的项目实例,主要用来学习。发送到我的邮箱790684386@qq.com 谢谢
就是看手册就可以了
都是那样子的
key $value
queryphp ORM数据库类
---------------------------------------------------- ......
就是我在某个网页插入了一个php链接
我想获得那个网址的地址而且要输出txt格式或其他格式。应该如何实现???
引用
PHP code
<?php
if(!file_exists("ceshi.txt")){
fopen("ceshi. ......
<?php
@session_start();
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
$sql="select * from t_doctor WHERE docname='".$usernam ......