PHITE: Other Features

Home

> Quick Start
> Basic Concepts
        • Elements
        • Blocks
        • Content Snippets
        • PHITE Environment
        • Other Features
        • Security
> Code Examples
> Tool Examples
> Choose Skin
> Contact Me
> Help
> Credits
> Downloads
> PHITE Sites

Links
PHP
TemplatePower
ZOPE
HotScripts
ScriptSearch

Phite (GitHub)
PHITE is now listed on GitHub


Other Features

Redirects: If a page or sub-page directory contains a file that contains a .inc file whose name is 'redirect.inc' or begins with 'redirect_' then the link name appears in the navigation block as usual, but the link URL is derived from the contents of the redirect file. The file can be plain text, HTML or PHP like any other snippet.

Character Substitution: Characters which are illegal in filenames can be inserted by including a substitution string beginning with two underscores ('__'). Thus "Benda__apos_File" becomes "Brenda's File". The substitutions can be set in the 'SETTINGS' section of the main script. The substitutions included in the distribution are:

$namechars['__apo'] = "'";
$namechars['__que'] = "?";
$namechars['__col'] = ":";
$namechars['__com'] = ",";
# 20170103: added '/' character substitution
$namechars['__fsl'] = "/";

Multiple Sites: You can have multiple 'sites' served by the same root script. The site signatures ensure that there is no ambiguity as to what pages belong to what site. For example, the site with signature 'XY' is seen by simply pointing the browser at PHITE.php?sitesig=XY.
The standard distribution comes with a single site defined:

$sites['PT'] = array('name'=>"PHITE","homepagename"=>'Home',
                     'def_skin'=>'YellowNBlue');
Box Example
This is the Right box for the Basic Concepts page. It appears because there is a file called RB_001_Box_Example.inc with this text in it, in the directory PT_003_Basic_Concepts.

 
Chris Robson 2002, Tom Brennfleck 2009
Privacy        Disclaimer
Online: 1    Today: 1    Total: 73,838
Powered by Phite