Re: [WebDNA] anyone have a solution for a global include for v7?

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109283
interpreted = N
texte = This is a multi-part message in MIME format. --------------030904010800010002000004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks. I've set up root directory to start at / so finding a path is simple no matter where you are at. I googled apache configurations to see if I can preload up a file but couldn't find anything. I'll just rewrite my site to work without the global load...sure was nice to load up functions that would be available on every page. Govinda wrote: >> Am running v7 on my mac and hoping to get a global include working (or I'll have to edit a whole bunch of files that rely on global functions). > > On one project I stuck a file (for include) in *every* directory, and that file contained the relative path to my actual 'faux-globals' directory from that directory. Then for every path that had wanted to use globals, I just included there the copy of my globals-path definer, that lives in every directory. This way every path that had wanted to use globals can be the same.. i.e. a local call to a file in that very same directory. > > In the end it worked fine, although seemed kinda silly too. But maybe will save you some hassle by following something similar? > > -G > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list. > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------030904010800010002000004 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks. I've set up root directory to start at / so finding a path is simple no matter where you are at. I googled apache configurations to see if I can preload up a file but couldn't find anything. I'll just rewrite my site to work without the global load...sure was nice to load up functions that would be available on every page.

Govinda wrote:
Am running v7 on my mac and hoping to get a global include working (or I'll have to edit a whole bunch of files that rely on global functions). 
On one project I stuck a file (for include) in *every* directory, and that file contained the relative path to my actual 'faux-globals' directory from that directory.  Then for every path that had wanted to use globals, I just included there the copy of my globals-path definer, that lives in every directory.   This way every path that had wanted to use globals can be the same.. i.e. a local call to a file in that very same directory.In the end it worked fine, although seemed kinda silly too.  But maybe will save you some hassle by following something similar?-G---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
--------------030904010800010002000004-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] anyone have a solution for a global include for v7? (Olin Lagon 2012)
  2. Re: [WebDNA] anyone have a solution for a global include for v7? (Govinda 2012)
  3. [WebDNA] anyone have a solution for a global include for v7? (Olin Lagon 2012)
This is a multi-part message in MIME format. --------------030904010800010002000004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks. I've set up root directory to start at / so finding a path is simple no matter where you are at. I googled apache configurations to see if I can preload up a file but couldn't find anything. I'll just rewrite my site to work without the global load...sure was nice to load up functions that would be available on every page. Govinda wrote: >> Am running v7 on my mac and hoping to get a global include working (or I'll have to edit a whole bunch of files that rely on global functions). > > On one project I stuck a file (for include) in *every* directory, and that file contained the relative path to my actual 'faux-globals' directory from that directory. Then for every path that had wanted to use globals, I just included there the copy of my globals-path definer, that lives in every directory. This way every path that had wanted to use globals can be the same.. i.e. a local call to a file in that very same directory. > > In the end it worked fine, although seemed kinda silly too. But maybe will save you some hassle by following something similar? > > -G > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list. > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --------------030904010800010002000004 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks. I've set up root directory to start at / so finding a path is simple no matter where you are at. I googled apache configurations to see if I can preload up a file but couldn't find anything. I'll just rewrite my site to work without the global load...sure was nice to load up functions that would be available on every page.

Govinda wrote:
Am running v7 on my mac and hoping to get a global include working (or I'll have to edit a whole bunch of files that rely on global functions). 
On one project I stuck a file (for include) in *every* directory, and that file contained the relative path to my actual 'faux-globals' directory from that directory.  Then for every path that had wanted to use globals, I just included there the copy of my globals-path definer, that lives in every directory.   This way every path that had wanted to use globals can be the same.. i.e. a local call to a file in that very same directory.In the end it worked fine, although seemed kinda silly too.  But maybe will save you some hassle by following something similar?-G---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
--------------030904010800010002000004-- Olin Lagon

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:

Fw: Linux w/ apache (2000) [searchString] (1997) Generating Report Totals (1997) [writefile] (1997) Cart Question (1998) Housekeeping question (1999) Help! WebCat2 bug (1997) IIS4 (1998) I have observed and I am gone. (1998) I'm new (2001) Math Context (2001) [WebDNA] Image Magick and Webdna (2009) Append File help needed (2000) WebCat2 Append problem (B14Macacgi) (1997) Rams SuperBowl Champs (2000) X etc.... (1999) [OT] Cold Fusion snippet please... (2002) multiple search commands (1997) RAM variables (1997) Trouble with formula.db (1997)