|P is for Practical|
Re: disable functions if module not installedby Anonymous Monk
|on Nov 04, 2008 at 20:04 UTC||Need Help??|
Your first snippet of:
works exactly as you want, when run as written above. $is_magick is set to 0 if GD is not available and 1 if GD is available.
That suggests that there's something about your implementation of this snippet in your module or program that prevents it from working.
Can you provide a sample of code that you have written which demonstrates erroneous behaviour?