Jump to content

Archived

This topic is now archived and is closed to further replies.

Mr Chris

GD Thumbnails script - please help

Recommended Posts

Hi Guys,

This is probably a stupid question, but have carried out the tutorial and I just don't understand:

[a href=\"http://www.phpfreaks.com/tutorials/111/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/111/0.php[/a]

But where do I save this file? Do I save it in my main images folder? The thumbnail folder? Or is it the action of a form when the file is uploaded to the main images folder?

Thanks

Chris

Share this post


Link to post
Share on other sites
You can save the image where ever you wish (depending on whether open_base_dir is set in your php.ini file!).

The only thing then is to ensure you link to it with the correct path.

You can save the image to the database and write a standalone script to echo the image out - but that is another story...

Share this post


Link to post
Share on other sites
Sorry for probably being thick, but:

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]You can save the image where ever you wish (depending on whether open_base_dir is set in your php.ini file!).[/quote]

So this file I save I can save anywhere in any directory and I just have to edit the php.ini file (which is from my website service provider) to let it know I want thumbnails created???

Thanks

Share this post


Link to post
Share on other sites
Might look here, altho it deals with resizing, it may explain about the saving...

[a href=\"http://www.nstoia.com/toh/technical/imageresize/\" target=\"_blank\"]http://www.nstoia.com/toh/technical/imageresize/[/a]

Lite...

Share this post


Link to post
Share on other sites
Cheers Guys,

I understand the theory on how it works, which is what the link tells me.

But where do I upload this file to? How do all my images in my 'images' folder know they have to be created as a thumbnail and told to be dropped in a 'thumbnail' folder?

Thanks, but still confused!?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.