[問題] PHP 驗證碼圖案跑不出來

看板Web_Design作者 (frog)時間13年前 (2012/08/23 15:59), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
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/24 00:47, , 1F
檔案權限?
08/24 00:47, 1F
文章代碼(AID): #1GDUByi6 (Web_Design)