PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You can see the names of various extensions by using phpinfo() or if you're using the CGI or CLI version of PHP you can use the -m switch to list all available extensions
-Or-
Use print_r(get_loaded_extensions()); to get all loaded extensions.
I hope this will show you the right way
Last edited by number8 on Tue Nov 30, 2004 9:39 am, edited 1 time in total.
I'm not so good with preg_match, how can I check if it is version 2 or newer?
Checking if 'imagecreatetruecolor' function exit, is this a good alternative?
The gd_info() function is only available in PHP v4.3 and above, PHP v4.3 only has the imagecreatetruecolour function available if G.D 2 is loaded so you can use a standard function_exists() to determine if GD2 is loaded.
redmonkey wrote:The gd_info() function is only available in PHP v4.3 and above, PHP v4.3 only has the imagecreatetruecolour function available if G.D 2 is loaded so you can use a standard function_exists() to determine if GD2 is loaded.