[WebDNA] List Files question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103670
interpreted = N
texte = This is a multi-part message in MIME format. ------=_NextPart_000_0212_01CA3C75.4B8F6790 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I need help. My server is bogging down with the following code as it is run a few hundreds times on the same page. Is there anyone out there that can help me increase the efficiency of this? [text]thumb=t[/text] [listfiles path=pics&name=[sku]A.jpg&exact=t] [showif [filename]!][text]thumb=f[/text][/showif] [/listfiles] [showif [thumb]=t][/showif] [showif [thumb]=f][/showif] Basically I am looking in the pics folder to see if a photo exists and if it does then display the photo, if it does not then display a generic placeholder photo. Maybe an if/then would be faster? Is there any statistics on how quick an if/then is compared to showif and hideif? Thanks in advance for all help. Michael A. DeLorenzo Broker - Associate General Manager Olde Carriage Realty, Inc. Office: 904-824-4500 Mobile: 904-377-5582 Toll-Free: 1-800-555-6138 Fax: 904-824-6866 www.oldecarriage.com ------=_NextPart_000_0212_01CA3C75.4B8F6790 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

I need help. My server is bogging down with the = following code as it is run a few hundreds times on the same page. Is there anyone = out there that can help me increase the efficiency of = this?

 

[text]thumb=3Dt[/text]

[listfiles = path=3Dpics&name=3D[sku]A.jpg&exact=3Dt]=

[showif = [filename]!][text]thumb=3Df[/text][/showif]

[/listfiles]

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =             &= nbsp;

[showif [thumb]=3Dt]<image src=3D"pics/ForSaleSignA.jpg" = border=3D"0">[/showif]

[showif [thumb]=3Df]<image = src=3D"pics/[sku]A.jpg" border=3D"0">[/showif]

 

 

Basically I am looking in the pics folder to see if a = photo exists and if it does then display the photo, if it does not then = display a generic placeholder photo. Maybe an if/then would be faster? Is there = any statistics on how quick an if/then is compared to showif and = hideif?

 

Thanks in advance for all = help.

 

 

Michael A. DeLorenzo

Broker - Associate

General Manager

Olde Carriage Realty, = Inc.

Office: 904-824-4500

Mobile: 904-377-5582

Toll-Free: = 1-800-555-6138

Fax: 904-824-6866

www.oldecarriage.com

 

------=_NextPart_000_0212_01CA3C75.4B8F6790-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] List Files question (Patrick McCormick 2009)
  2. Re: [WebDNA] List Files question ("Terry Wilson" 2009)
  3. RE: [WebDNA] List Files question ("Will Starck" 2009)
  4. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  5. RE: [WebDNA] List Files question ("Michael A. DeLorenzo" 2009)
  6. Re: [WebDNA] List Files question (Patrick McCormick 2009)
  7. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  8. Re: [WebDNA] List Files question ("Gary Krockover" 2009)
  9. Re: [WebDNA] List Files question (Kenneth Grome 2009)
  10. Re: [WebDNA] List Files question (Marc Thompson 2009)
  11. Re: [WebDNA] List Files question (William DeVaul 2009)
  12. [WebDNA] List Files question ("Michael A. DeLorenzo" 2009)
This is a multi-part message in MIME format. ------=_NextPart_000_0212_01CA3C75.4B8F6790 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I need help. My server is bogging down with the following code as it is run a few hundreds times on the same page. Is there anyone out there that can help me increase the efficiency of this? [text]thumb=t[/text] [listfiles path=pics&name=[sku]A.jpg&exact=t] [showif [filename]!][text]thumb=f[/text][/showif] [/listfiles] [showif [thumb]=t][/showif] [showif [thumb]=f][/showif] Basically I am looking in the pics folder to see if a photo exists and if it does then display the photo, if it does not then display a generic placeholder photo. Maybe an if/then would be faster? Is there any statistics on how quick an if/then is compared to showif and hideif? Thanks in advance for all help. Michael A. DeLorenzo Broker - Associate General Manager Olde Carriage Realty, Inc. Office: 904-824-4500 Mobile: 904-377-5582 Toll-Free: 1-800-555-6138 Fax: 904-824-6866 www.oldecarriage.com ------=_NextPart_000_0212_01CA3C75.4B8F6790 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

I need help. My server is bogging down with the = following code as it is run a few hundreds times on the same page. Is there anyone = out there that can help me increase the efficiency of = this?

 

[text]thumb=3Dt[/text]

[listfiles = path=3Dpics&name=3D[sku]A.jpg&exact=3Dt]=

[showif = [filename]!][text]thumb=3Df[/text][/showif]

[/listfiles]

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =             &= nbsp;

[showif [thumb]=3Dt]<image src=3D"pics/ForSaleSignA.jpg" = border=3D"0">[/showif]

[showif [thumb]=3Df]<image = src=3D"pics/[sku]A.jpg" border=3D"0">[/showif]

 

 

Basically I am looking in the pics folder to see if a = photo exists and if it does then display the photo, if it does not then = display a generic placeholder photo. Maybe an if/then would be faster? Is there = any statistics on how quick an if/then is compared to showif and = hideif?

 

Thanks in advance for all = help.

 

 

Michael A. DeLorenzo

Broker - Associate

General Manager

Olde Carriage Realty, = Inc.

Office: 904-824-4500

Mobile: 904-377-5582

Toll-Free: = 1-800-555-6138

Fax: 904-824-6866

www.oldecarriage.com

 

------=_NextPart_000_0212_01CA3C75.4B8F6790-- "Michael A. DeLorenzo"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Quit revisited (1997) WCS Newbie question (1997) stumped (2001) Limit on nested [ShowIf]'s? (1997) PIXO support (1997) protect tag on NT IIS (1997) WCS Newbie question (1997) WebCatalog for guestbook ? (1997) Showif date range comparison (1999) [SearchString] usage (1997) Alternative colors? - Thanks! (2000) Problem 2: Prefs file... (1997) Cart Question (1998) Sendmail & Time Issue (2001) showcart context? (1998) carriage returns in data (1997) HomePage Caution (1997) Math Problem - Format? (1997) Laying an egg. (1998) Nested tags count question (1997)