【问题标题】:captcha img and avatar img not showing up验证码 img 和头像 img 未显示
【发布时间】:2012-09-12 06:46:41
【问题描述】:

我正在尝试在我的网站上运行评分和评论软件。我无法显示头像或验证码图像。如何在运行 Windows IIS 的服务器上进行调整?

extension=php_gd2.dll

<label class="xcFormLabel" for="idRegAvatar">
  Avatar - images will be resized to 80px x 80px (100k):
</label>
<div class="xcDivClear">
</div>
<input type="file" name="avatar" id="idRegAvatar" value="" class="xcRegInputText" />
<br /><br />
<img class="xcRegCaptchaImg" src="../xcommentpro/Captcha.php?type=reg">
<br /><br />
<label class="xcFormLabel" for="idRegCaptcha">
  Enter the code above:
</label>
<br />
<input type="text" name="captcha" id="idRegCaptcha" class="xcRegInputText" />
<br /><br />

出现如下错误:

致命错误:在第 64 行调用 C:\www\recipes4cakes\xcommentpro\fileupload.php 中未定义的函数 imagecreatefromjpeg()

【问题讨论】:

  • 请向我们展示您的密码!!!







  • 致命错误:在第 64 行调用 C:\www\recipes4cakes\xcommentpro\fileupload.php 中未定义的函数 imagecreatefromjpeg()

标签: image captcha


【解决方案1】:

错误来自 GD 库的问题。您需要在 phpinfo()(GD 部分)中检查 JPEG 支持,否则 imagecreatefromjpeg() 函数将不起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-30
    • 1970-01-01
    • 2021-11-30
    • 2017-12-27
    相关资源
    最近更新 更多