hey,

i want to make graphics using php scripts. I heard it is possible with GD programming or something like that. I tried reading that up but still don't catch a glimse of what is it talking about.

I'm hosting my server on my Windows XP Professional, Abyss Web Server. PHP version 5.1.4.

I went to GD website and it says that the Windows DLL library is "not for PHP"(this is the part where i'm most confused) 😕

Could you guys guide me along to my first graphics?

Thanks 😃

    Well the first thing to do is to see if your webhost has GD enabled, run this code

    <?php
    echo '<pre>';
    var_dump(gd_info());
    echo '</pre>';
    ?>

    and if you have GD support then you will get a page display like this

    array(12) {
      ["GD Version"]=>
      string(27) "bundled (2.0.28 compatible)"
      ["FreeType Support"]=>
      bool(true)
      ["FreeType Linkage"]=>
      string(13) "with freetype"
      ["T1Lib Support"]=>
      bool(true)
      ["GIF Read Support"]=>
      bool(true)
      ["GIF Create Support"]=>
      bool(true)
      ["JPG Support"]=>
      bool(true)
      ["PNG Support"]=>
      bool(true)
      ["WBMP Support"]=>
      bool(true)
      ["XPM Support"]=>
      bool(false)
      ["XBM Support"]=>
      bool(true)
      ["JIS-mapped Japanese Font Support"]=>
      bool(false)
    }

    After that Google for GD tutorials there's loads our there.

      a month later

      an if statement with no else :eek:

      what happens when it returns:

      Fatal error: Call to undefined function gd_info() in D:\WWW\scripts\image.php on line 4

      rincewind456 wrote:

      Well the first thing to do is to see if your webhost has GD enabled, run this code

      <?php
      echo '<pre>';
      var_dump(gd_info());
      echo '</pre>';
      ?>

      and if you have GD support then you will get a page display like this

      
      After that Google for [url=http://www.google.com/search?rls=en&q=GD+tutorials&ie=utf-8&oe=utf-8]GD tutorials[/url] there's loads our there.[/QUOTE]
        Write a Reply...