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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php