在 getVerity.php 調(diào)用 verifyImage();不顯示驗(yàn)證碼。而在image.func.php中直接調(diào)用verifyImage();則會(huì)顯示
是getVerity.php 中requrie once 'include.php'的路徑出現(xiàn)了問(wèn)題 ?。我的解決辦法是 在lib中新建一個(gè)test.php ?打入 requrie once ‘image.inc.php’ 在修改 Login.php中圖片的加載路徑,<li><img src="../lib/test.php" ?/></li> 這樣驗(yàn)證碼就能顯示了 我自己研究了好久才弄出來(lái)是路徑出現(xiàn)了問(wèn)題,不會(huì)改require once“include.php”就只能想別的辦法了,希望對(duì)你們都點(diǎn)幫助,不要卡在這里這么久。。