deepin15.4 thinkphp5 nginx 驗證碼不顯示的問題

驗證碼調用代碼

<input type="text" name="code" class="code" placeholder="輸入右側驗證碼"/><img src="{:captcha_src()}" alt="captcha" onclick="this.src='{:captcha_src()}'"  />


解決驗證碼圖片不顯示的辦法:

sudo apt-get install php-gd php5-gd;

sudo /etc/init.d/nginx restart

sduo /etc/init.d/php7.0-fpm restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章