Fork me on GitHub

php code question for a block  Bottom

  • I had a block that was working fine, but something must have been updated on my server that messed things up. The code im using creates a png image with text over top:

    Code

    $im = imagecreatefrompng("ssrb2.png");


    But now, im getting this error:

    Call to undefined function: imagecreatefrompng()

    Is there more info I can provide that would help to get any answers???
  • Well.... it may be server-related issue... you never know.. but why would your hoster go back to an older PHP version...

    Just to make sure I would do a little test... you know code can be picky
    so it may be the typing way of small and big letters and use of ", but just replace with this and see what happens

    Code

    $img = "ssrb2.png";
    $im = imageCreateFromPng($img); // note the capital use inbetween letters


    regs

    StormS
  • Its more likely that your provider changed their GD or imagemagik installation. I would contact your provider and ask them.
  • aase

    Well.... it may be server-related issue... you never know.. but why would your hoster go back to an older PHP version...

    Just to make sure I would do a little test... you know code can be picky
    so it may be the typing way of small and big letters and use of ", but just replace with this and see what happens

    Code

    $img = "ssrb2.png";
    $im = imageCreateFromPng($img); // note the capital use inbetween letters




    yeah, didnt work.


    StormS
  • 0 users

This list is based on users active over the last 60 minutes.