title: JpGraph Error: 25001 This PHP installation is not configured with the GD library
body: <p>I have a PHP application that is running under WAMP and using JPGraph. It all works fine. I am trying to now deploy the application on a production web server which, rather than running WAMP, runs native Apache and PHP, and am receiving the following error:</p>
  
  <pre><code>Notice: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' in C:\Program Files\Adaptive\webPortal\models\jpgraph\jpgraph_errhandler.inc.php on line 282
  JpGraph Error: 25001 This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)
  </code></pre>
  
  <p>Now obviously I have ran up <code>phpinfo()</code> and, as expected, there is no GD enabled on the production server. The only difference I can see is in the version of PHP; WAMP is bundled with PHP <strong>5.4.12</strong> and the production server has installed PHP <strong>5.3.29</strong>, so a slightly earlier version. The issue is this has to run on Windows, and I can't find a Windows PHP installation for any version greater than 5.3.29.</p>
  
  <p>However, I see no reason why I can't just enable GD on the production server. BUT:</p>
  
  <ul>
  <li>The extension=php_gd2.dll line is uncommented in php.ini</li>
  <li>php_gd2.dll exists in \PHP\ext</li>
  </ul>
  
  <p>So... yeah. I'm kind of stuck haha. Can anyone help? Thanks in advance!</p>