Re: checking if extension loaded

From: Date: Fri, 20 Jul 2007 23:52:53 +0000
Subject: Re: checking if extension loaded
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259264@lists.php.net to get a copy of this message
On Wed, July 18, 2007 4:37 am, Vanessa Vega wrote: > I have a function that creates a thumb file(thumbnail) and and an > image > file(preview pic) in php. It starts with: > function ($picFile, $thumbFile, $imageFile) { > if (extension_loaded('gd') { > ......codes to create thumb and preview pic... > > else > ......creating images failed > > } > everytime i test it, the function fails to create the images... > > This function works in joomla.............. > > sorry....im just new to php programming.....:-) Is joomla running on the same server as your php script? I will assume not. Does <?php phpinfo();?> list "GD" as one of the loaded extensions? I will assume not. The solution, then, is to install GD so that you have the GD functions available to you. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#259264) next »