→ draven:檔案權限? 08/24 00:47
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