[請益] 驗證碼圖案跑不出來
html:
<img src="captcha.php" id="captcha" alt="captcha" />
php:
<?session_start();?>
<?php
create_image();
exit();
function create_image(){
$security_code =$_SESSION["security_code"];
$image = @imagecreatefromjpeg("images\static.jpg");
$black = ImageColorAllocate($image, 0, 0, 0);
$vPos = 4;
$hPos = 30;
$fontSize = 5;
ImageString($image, $fontSize, $hPos, $vPos, $security_code, $black);
header("Content-Type: image/jpeg");
ImageJpeg($image);
ImageDestroy($image);
}
?>
想請問為什麼一直跑不出圖片呢@@
php所要引用的圖片也有放對位置
懇求幫忙解答...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.163.194.235
→
08/23 15:59, , 1F
08/23 15:59, 1F
→
08/23 16:06, , 2F
08/23 16:06, 2F
→
08/23 17:52, , 3F
08/23 17:52, 3F
→
08/23 17:52, , 4F
08/23 17:52, 4F
推
08/23 20:28, , 5F
08/23 20:28, 5F
推
08/23 21:06, , 6F
08/23 21:06, 6F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章