Fatal error: Call to undefined function: imagecreate()

后端 未结 8 813
难免孤独
难免孤独 2021-02-06 20:59

I\'m trying to put some graphics on a web page and at my prototype at the computer it\'s all working fine at the localhost. But now I uploaded the files to a server and I\'m hav

8条回答
  •  名媛妹妹
    2021-02-06 21:50

    1. Copy the file php_gd2.dll from your PHP's ext/ directory to where you have your php extensions. (No need to copy if php_gd2.dll is in the extension dir already. Look in php.ini for 'extension_dir' directive to find what is your current extension directory)

    2. Modify your php.ini and change the following line:

    ;extension=php_gd2.dll

    to:

    extension=php_gd2.dll
    

提交回复
热议问题