28, May 2012

Main image + Thumbnail with _sm suffix in same folder? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: Main image + Thumbnail with _sm suffix in same folder?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Main image + Thumbnail with _sm suffix in same folder?  (Read 1852 times)
I crack Photoshop!
*
Posts: 3
26 credits
Members referred : 0


« on: Dec 03, 2006, 03:57:17 pm »

Hi,

I have seen other similar posts in the forum, but not found an answer yet...

The script below works fine and uploads a resized 'main' and 'thumb' image into separate folders - how can this be modified so that the 2 images are uploaded into the same folder with the 'thumb' image having a _sm suffix i.e.

/uploadfolder/sample.jpg (main pic)
/uploadfolder/sample_sm.jpg (thumbpic)

The site this is aimed at has a large number of pics online already, hence the need to reinvent the wheel!

Any advice would be great.

Thanks,

Woodie.

<snipped />
Download the script at: http://www.finalwebsites.com/snippets.php?id=7
« Last Edit: Dec 03, 2006, 06:48:22 pm by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Dec 03, 2006, 06:50:02 pm »

Hello,

first don't post code here if you don;t changed him.

about your question, why not using several folders like in the example?

I crack Photoshop!
*
Posts: 3
26 credits
Members referred : 0


« Reply #2 on: Dec 07, 2006, 10:51:30 am »

Olaf - thanks for your quick reply. I have updated the script version as you suggested.

I have reconfigured the site to run with the 2 folders - why fix it when its not broken!!

Thanks for your support.

Woodie
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5020
Tags : forums Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Easy PHP Upload (Moderator: Olaf)
Topic: Main image + Thumbnail with _sm suffix in same folder?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 04:55:01 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.