including a file on on-rev
J. Landman Gay
jacque at hyperactivesw.com
Tue Nov 3 15:40:57 CST 2009
Claudi Cornaz wrote:
> I need to change the include statement to:
> include "../lib/cc_PageStats.irev"
> but this doesn't work.
I have many pages at my on-rev site like that and it works fine. The
"../" does mean "up one folder" and I often use it.
> Even better would be, preferably a one liner, so I can include the file
> from whatever dir the requested page is,
> without worring about the number of levels
> (I have been trying with a 'hard coded adress like
This works too. Did you use the include statement as a revTalk script?
It has to be like this:
<?rev include "../cc_PageStats.irev" ?>
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode