Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Updated Sunday, April 23rd, 2006 at 4:16pm

Checking for GD support on your server

Several of the scripts and plugins on this site use the GD library to generate verification images. If you are having problems getting a generated image to display, the first step is to make sure your server has support for the GD library in PHP. This small script will tell you if your server supports GD, and if it does, it will list the specific components. For example, some versions of PHP/GD have problems generating PNG files. You can use this script to know if you need to change the script to generate a GIF instead, or if you just do not have support at all for GD.

Live Demo

Download

  If you have found this page useful, please consider donating. Thanks!

Instructions

Download the above file, rename it from .txt to .php, upload it to your server, and open it in your browser.

Pages: « 3 2 [1] Show All

  1. Virginia: The script on your server is looking here for the verification file:

    http://www.yukasato.net/formmailer_verify.php

    The problem is that the file is just not there. Did you upload it?

  2. 14
    Virginia

    I have it up at http://www.yukasato.net/links.php
    Sorry it took a while to respond :)

  3. Virginia: There are many possible reasons :) Can I see a link? You can email it to me if you prefer.

  4. 12
    Virginia

    I have done everything listed here successfully(gd supported, php mail works) and the image still doesn’t show up on one site I am doing(it works on my other site). Is there anything else anyone can think of as to why the image doesn’t show up?

  5. Matt: No. It should work fine in all browsers, unless there is another issue you are having. :) Please post this on the proper page though.

  6. Oops – Secure Form Mailer Plugin For Wordpress

    thanks Admin, but I just noticed that it is showing up on my work computer (Internet Explorer). I was using firefox at home when I posted, and tried reloading the page, too – are there any issues w/ the mozilla browser (CSS, etc)?

    thanks

  7. Matt: You are going to have to tell me what plugin/script you are trying to use. There are a few different ones that make use of the image verification. Please leave a comment on the page for the script in question. :)

  8. Regarding previous comment, forgot to mention I tried alt version of verify already – no dice…

  9. I am not seeing any verification code – uploaded the file to my server to test as you instructed and received the following.

    GD is supported by your server!
    GD Version Yes
    FreeType Support Yes
    FreeType Linkage Yes
    T1Lib Support No
    GIF Read Support Yes
    GIF Create Support Yes
    JPG Support Yes
    PNG Support Yes
    WBMP Support Yes
    XBM Support Yes
    JIS-mapped Japanese Font Support No

    by dagondesign.com

    Shows just like the demo file on your server… what can I do next to determine the cause of the image not showing?

    Thanks,

  10. Maya: You will have to contact your web host and see if they can enable sending mail through PHP. There is not much you will be able to do yourself unfortunately.

  11. ok i get this message:
    Warning: mail(): “sendmail_from” not set in php.ini or custom “From:” header missing in D:\hshome\chefilan\chefilan.com\blog\wp-content\plugins\test.php on line 1

    i guess it’s not supported. how can i make it work?

  12. Maya: Save the following code as test.php, upload it, and open it in your browser. Then check your mail :)

    <?php mail('your@email.com', 'Subject', 'Message'); ?>

    Be sure to add in your email address of course.

  13. what can i do to check that?

  14. Maya: I have not seen this happen before, but after a bit of searching, it looks like it is usually caused by PHP not being configured to send mail. Do you know if your server supports the use of the mail function from PHP?

  15. i don’t want any verification. i removed it from the form successfully, but now when i send the message i keep getting this error:

    Warning: mail(): “sendmail_from” not set in php.ini or custom “From:” header missing in D:\hshome\chefilan\chefilan.com\blog\wp-content\plugins\intouch\dd-formmailer-plugin.php on line 700

    about a missing header..
    any idea what this is?

Pages: « 3 2 [1] Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.