How to know GD extension work on your server

 Use the following code to test if you have GD extension:

<?php
$testGD = get_extension_funcs("gd"); // Grab function list
if (!$testGD){ echo "GD not even installed."; exit; };
echo"<pre>".print_r($testGD,true)."</pre>";

save as php file (ex: testgd.php)

Run from your server 

youserver. com/testgd.php

If you get the message that it's not installed, then check the following steps:

    phpinfo() and look up php.ini path

    edit php.ini: extension_dir=<path to your extensions>

    edit php.ini: extension=php_gd2.dll //uncomment or add

    Restart web server

    Run the test script again

TRANSLATE this Page

Posting Komentar

0 Komentar