[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:

RE: Signal Raised (1997) Referrer or maybe another way..... (2005) using showpage and showcart commands (1996) Can't use old cart file (was One more try) (1997) Re: (1998) Error.html (1997) Erotic Sites (1997) Duplicate Carts (2000) Hard Questions ? (1997) Faxing orders in place of email (1997) (2001) How to append text after the sign & (1997) Protect (1997) Document Contains No Data! (1997) bug in [SendMail] (1997) all records returned. (1997) Sample Tearoom Search Error (1997) Kaaaaahhhhhhhnnnnnnn! (1997) Bug Report, maybe (1997) Using the sendmail command on CGate Pro (Unix) (2000)