update FAQ, QUICKSTART for windows include_path setup

This commit is contained in:
mohrt
2001-05-18 21:00:57 +00:00
parent 10e8915563
commit ade253d62d
2 changed files with 11 additions and 1 deletions

6
FAQ
View File

@@ -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

View File

@@ -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