What can cause an standard PHP function not to work?

Discussion in 'PHP' started by Gestbiz, Jan 5, 2007.

  1. #1
    Does anybody know what can cause a regular PHP function such as
    imagettfbbox() cannot be call in php version 5 site.

    I got this error return
    Fatal error: Call to undefined function imagettfbbox() in
    /home/bmgxtd/public_html/mtags/captcha/CaptchaSecurityImages.php on line 58


    What PHP flag or server includes flag must be turn on to make this function work properly?


    Thanks
     
    Gestbiz, Jan 5, 2007 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    According to the manual: "This function requires both the GD library and the FreeType library".

    If either library is missing from the machine or this functionaility is not turned on and/or not compiled into your version of PHP the call to that function will fail. On my windows install I needed to uncomment extension=php_gd2.dll
    in the php.ini file to get GD to work. On my linux boxes I needed to recompile PHP to include the GD lib.
     
    clancey, Jan 5, 2007 IP
  3. Gestbiz

    Gestbiz Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am running linux and I do not have access to recompile PHP GD lib.
    What should I asked my hosting company to do for me to have it work?

    If I run phpinfo.php what parameter should I look for to find out what you mentioned above?
     
    Gestbiz, Jan 5, 2007 IP
  4. solidphp

    solidphp Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just ask your host to add GD lib to PHP and keep all current settings. They will know what you need.

    I don't think this will be an issue since you are running Linux.
     
    solidphp, Jan 5, 2007 IP
  5. Gestbiz

    Gestbiz Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you very much, I learn a lot from this tread today...!


    Regards,

    Gestbiz
     
    Gestbiz, Jan 5, 2007 IP