21.2 Absolute Input File

21.2.1 Synopsis

absinputfile ()

21.2.2 Description

Return absolute name of input file (e.g. /home/jeff/projects/site/index.cws).

Important: absolute file names are usually meaningless when site is moved, so you must pay attention when using them. This function can be useful when you're debugging your scripts, or to provide informations to other functions.

21.2.3 Example

print (fdate (absinputfile()));

Display the date of last modify of the input file. Using the absolute file name can help if you're including scripts from different directories: the absolute name of input file point to the same file, regardless from the directory where the fdate () function is called.

This manual can be downloaded from http://www.g-cows.org/.