... 1-2: A PHP Script with External User Interface
< ?php
// Enable all error reporting
error_reporting(E_ALL);
// Set PHPLIB path
$PHPLIB_DIR = $_SERVER[‘DOCUMENT_ROOT’] . ‘/phplib’;
// Add PHPLIB ... line:
$PHPLIB_DIR = $_SERVER[‘DOCUMENT_ROOT’] . ‘/phplib’;
The first line of the script sets a variable called $PHPLIB_DIR to a path where
PHPLIB library files are stored. The path is set to...
... 237
◆
You have installed the PHPLIB and PEAR libraries. Normally, these are
installed during PHP installation. For your convenience, we have provided
these in the lib/phplib.tar.gz and lib/pear.tar.gz ... application
The user tip application is called tips .php and shows a tip of the day. This appli-
cation is included on the CD-ROM in the ch07/apps directory.
It has the following methods:...
... templates
| |
| + themes (theme templates used by all intranet apps) < +
| |
+ photos (user photos used by all intranet apps) |
Chapter 8: Intranet Simple Document Publisher 265
11 549669 ... in this directory should have only
read/write permissions for the Web server user
which runs the PHP scripts.
$LD_CATEGORY_NAV_OUTFILE The category navigation file created by the
simple document