Home  >  Q&A  >  body text

Click to switch verification code error, cannot get the picture

Error report: captcha:1 GET http://localhost/captcha?id=1504664532 404 (Not Found)

Then the image obtained is the same as if the verification code is not set

清楚叛逆者清楚叛逆者2623 days ago1573

reply all(4)I'll reply

  • 花开,若相惜

    花开,若相惜2018-01-29 11:55:22

    Owner, how did you modify php.ini to obtain the verification code image

    reply
    0
  • 黄子乐

    黄子乐2017-11-07 19:37:57

    Hello, landlord, I just used the attr("src","../../captcha?id="+ ts) you gave me, and it worked, but I don't know what the principle is. Can you explain it? Or how to configure the file?

    reply
    3
  • ringa_lee

    ringa_lee2017-09-11 17:28:47

    Then you failed to generate the verification code?

    reply
    0
  • 清楚叛逆者

    Successful. It's a PHP configuration issue. Modify configuration file

    清楚叛逆者 · 2017-09-12 10:31:52
    ringa_lee

    Okay, just solve it

    ringa_lee · 2017-09-12 13:51:50
  • 清楚叛逆者

    清楚叛逆者2017-09-06 10:24:10

    Path error, not found 404

    reply
    2
  • ringa_lee

    How did you get the verification code?

    ringa_lee · 2017-09-11 17:29:08
    Tassel

    Try $("#verity_img").attr("src","/index.php/captcha?id="+ ts

    Tassel · 2017-09-12 13:28:32
    清楚叛逆者

    There is no problem with the path, thank you. It's just a php-ini configuration error. already solved

    清楚叛逆者 · 2017-09-12 13:29:48
    joker

    $("#verity_img").attr("src","../../captcha?id="+ ts This is fine, but I don’t know how to configure php.ini

    joker · 2017-09-27 00:26:46
  • Cancelreply