Re: Include from DB

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40977
interpreted = N
texte = > Change the code to: > > (include file=../includes/[IncludeFile]) > > then load the page to verify that you're getting what you think you're > getting.I tried this before posting to the list, and it's appearing just fine. > You could also use > [fileinfo ../includes/[IncludeFile]]I do this as well using the [exist] tag, so as not to generate any error text if the value is not on the server. It does indeed recognize that the file is there with a T.To re-explain my issue, I'm able to call the variable just fine. However, when I try to call it inside an [include] context, it crashes the server. It seems to work when my [IncludeFile] variable does not contain a /. I've tried all the tricks of using [url] and even [interpret] but it does not help. Is there something else I should try?Thanks for the help so far... Jason on 6/26/02 1:45 PM, Brian Fries at brainscan@mac.com wrote:> Change the code to: > > (include file=../includes/[IncludeFile]) > > then load the page to verify that you're getting what you think you're > getting. > > You could also use > [fileinfo ../includes/[IncludeFile]] > > to verify that WebCat is finding the include file. > > Usually when I have a tag that causes me to pound my head, something > like this shows me the error of my ways. > > - brian > > At 1:01 PM 6/26/02, Jason Sofonia wrote: >> I'm storing the filename and location of an include file in a database. >> When I try to retrieve this value and place it in an include context, >> though, I inevitably crash the server. >> >> Example: [include file=../includes/[IncludeFile]] >> >> The values for my variable [IncludeFile] can be on the same level >> (test1.inc) or one level deeper (testfolder/test2.inc). It seems to work >> better when I call the ones that don't have the /, but I can not change >> the file structure. >> >> I use this same method to store images and am able to retrieve them with no >> problems. >> >> Any thoughts or suggestions? >> >> WebCatalog Plugin 4.0.2 >> Mac OS 9.0.4 >> WebStar 4.5b1G4 >> >> -- >> Jason Sofonia >> Digital Frontier >> jason@digitalfrontier.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Include from DB (Donovan 2002)
  2. Re: Include from DB (NovaDerm Skincare Science 2002)
  3. Re: Include from DB (Jason Sofonia 2002)
  4. Re: Include from DB (Donovan 2002)
  5. Re: Include from DB (Jason Sofonia 2002)
  6. Re: Include from DB (Brian Fries 2002)
  7. Include from DB (Jason Sofonia 2002)
> Change the code to: > > (include file=../includes/[IncludeFile]) > > then load the page to verify that you're getting what you think you're > getting.I tried this before posting to the list, and it's appearing just fine. > You could also use > [fileinfo ../includes/[IncludeFile]]I do this as well using the [exist] tag, so as not to generate any error text if the value is not on the server. It does indeed recognize that the file is there with a T.To re-explain my issue, I'm able to call the variable just fine. However, when I try to call it inside an [include] context, it crashes the server. It seems to work when my [IncludeFile] variable does not contain a /. I've tried all the tricks of using [url] and even [interpret] but it does not help. Is there something else I should try?Thanks for the help so far... Jason on 6/26/02 1:45 PM, Brian Fries at brainscan@mac.com wrote:> Change the code to: > > (include file=../includes/[IncludeFile]) > > then load the page to verify that you're getting what you think you're > getting. > > You could also use > [fileinfo ../includes/[IncludeFile]] > > to verify that WebCat is finding the include file. > > Usually when I have a tag that causes me to pound my head, something > like this shows me the error of my ways. > > - brian > > At 1:01 PM 6/26/02, Jason Sofonia wrote: >> I'm storing the filename and location of an include file in a database. >> When I try to retrieve this value and place it in an include context, >> though, I inevitably crash the server. >> >> Example: [include file=../includes/[IncludeFile]] >> >> The values for my variable [IncludeFile] can be on the same level >> (test1.inc) or one level deeper (testfolder/test2.inc). It seems to work >> better when I call the ones that don't have the /, but I can not change >> the file structure. >> >> I use this same method to store images and am able to retrieve them with no >> problems. >> >> Any thoughts or suggestions? >> >> WebCatalog Plugin 4.0.2 >> Mac OS 9.0.4 >> WebStar 4.5b1G4 >> >> -- >> Jason Sofonia >> Digital Frontier >> jason@digitalfrontier.com > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Jason Sofonia

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:

Search results problem (2003) Multiple instances of database (2003) Sending mail (was forms and variables) (1998) WebCat2b15MacPlugin - showing [math] (1997) WCS Newbie question (1997) pull downs (1997) Re2: frames & carts (1997) Error Log (2000) multiple prices (1998) what run level should S90WebCatalog be at? (2003) Calendar using WebCatalog? (1997) Tech question about web dna actions (1998) [WebDNA] OSX Yosemite (2014) no template caching (1997) Multiple searches on a single page / random record from full database? (1999) Listing Words Backwords (2001) PCS Emailer's role ? (1997) Separate server for jpg/gif files (1998) Uh...can someone help me out with the b10? (1997) WebCat2b15MacPlugin - showing [math] (1997)