From ade253d62d95a6b10d17c895a5f4a5566a0aa752 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 18 May 2001 21:00:57 +0000 Subject: [PATCH] update FAQ, QUICKSTART for windows include_path setup --- FAQ | 6 +++++- QUICKSTART | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/FAQ b/FAQ index aed3f174..4063fcb2 100644 --- a/FAQ +++ b/FAQ @@ -97,7 +97,11 @@ Q: I get the following error when running Smarty: A: Smarty uses the PEAR libraries for some of its error handling routines. PEAR libraries come with the distribution of PHP. Be sure that the path to these libraries is included in your php include_path. Unix users check - /usr/local/lib/php. Windows users check C:/php/pear. + /usr/local/lib/php. Windows users check C:\php\pear. You may also need to + change the filename from PEAR.php.in to PEAR.php (windows distribution) + Example entry in php.ini: + (unix) include_path=".:/usr/local/lib/php" + (windows) include_path=".;\php\pear" Q: I get this error when passing variables to {include}: Fatal error: Call to undefined function: get_defined_vars() in diff --git a/QUICKSTART b/QUICKSTART index f7c4f950..9544dd8f 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -59,6 +59,12 @@ drwxrwxr-x 2 user group 512 Jan 18 14:18 configs/ drwxrwxr-x 2 user group 512 Jan 18 14:18 templates/ drwxrwxrwx 2 user group 512 Jan 18 14:18 templates_c/ +Make sure the current directory and the path to PEAR.php are in your +include_path. Example php.ini entries: +(unix) include_path=".:/usr/local/lib/php" +(windows) include_path=".;\php\pear" +Also, windows users may have to change the filename from PEAR.php.in +to PEAR.php (named like this in some distributions?) Now we need to create two files, index.php and templates/index.tpl. index.php is the file that we will be calling from our web browser. index.tpl is the file