[Pmwiki-users] Re: Re: Re: Safer .php-files
Christian Ridderström
chr
Sun Feb 29 12:08:29 CST 2004
On Sun, 29 Feb 2004, Thomas -Balu- Walter wrote:
> I am doing highlight_file(__FILE__); to display the file highlighted.
> __FILE__ is a PHP constant that contains the absolute path and filename
> of the actual file.
>
> So far it looks like this is working on all PHP installations and not
> broken in some versions or the like.
Thanks. It's even shorter now:-)
if(!defined('PmWiki')) { highlight_file(__FILE__); exit; }
/Christian
--
Christian Ridderstr?m http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list