Re: checking if extension loaded
| From: | Vanessa Vega | Date: | Mon, 23 Jul 2007 02:48:33 +0000 |
| Subject: | Re: checking if extension loaded | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259352@lists.php.net to get a copy of this message | ||
The GD library was installed by the administrator, so now....the function
already works.....:-)
""Richard Lynch"" <ceo@l-i-e.com> wrote in message
news:3987.24.12.13.192.1184975573.squirrel@www.l-i-e.com...
> 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?