Jump to content


Photo

GD Thumbnails script - please help


  • Please log in to reply
4 replies to this topic

#1 Mr Chris

Mr Chris
  • Members
  • PipPipPip
  • Advanced Member
  • 336 posts

Posted 15 June 2006 - 09:24 AM

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

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 15 June 2006 - 09:35 AM

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...

follow me on twitter @PHPsycho

#3 Mr Chris

Mr Chris
  • Members
  • PipPipPip
  • Advanced Member
  • 336 posts

Posted 15 June 2006 - 10:02 AM

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

#4 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 15 June 2006 - 10:24 AM

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...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#5 Mr Chris

Mr Chris
  • Members
  • PipPipPip
  • Advanced Member
  • 336 posts

Posted 15 June 2006 - 10:52 AM

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!?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users