Re: [PHP] Detecting GD version

2002-10-13 Thread Owen Prime
agecopyresampled'); > > otherwise I'm sure there has to be some function that returns versions of > libs. > > Andrew > - Original Message - > From: "Owen Prime" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, October

Re: [PHP] Detecting GD version

2002-10-13 Thread Andrew Brampton
try function_exists('imagecopyresampled'); otherwise I'm sure there has to be some function that returns versions of libs. Andrew - Original Message - From: "Owen Prime" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 14, 200

[PHP] Detecting GD version

2002-10-13 Thread Owen Prime
Has anyone got any better ideas about how to detect what version of GD is running other than the following. The reason I ask is that I want to use imagecopyresampled() only if available ie. GD >= v2.0. OPTION 1. Parse phpinfo() output for the GD version info. Expensive. OPTION 2. Run imagecopy