From de9e65c2678bf2deec6f6e36eda6981746838c1f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 6 Jul 2004 18:19:47 +0000 Subject: [PATCH] clarify native excel for php safe mode --- ChangeLog | 5 +++-- Documentation.html | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d84bc6ce..5cfc3e256 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,10 +7,11 @@ $Source$ 2004-07-06 Marc Delisle * libraries/export/xls.php: enable user to specify './tmp' as the - TempDir (use realpath() to find the complete path. Add error trap + TempDir -- use realpath() to find the complete path. Add error trap in case OLE cannot write to directory. Add setTempDir() to enable OLE write in this directory. - * Documentation.html: document the TempDir creation + * Documentation.html: document the TempDir creation and PHP safe mode + issues with PEAR 2004-07-05 Marc Delisle * footer.inc.php, index.php, queryframe.php: bug 981939, database diff --git a/Documentation.html b/Documentation.html index 6e637afdd..ca8a18b36 100755 --- a/Documentation.html +++ b/Documentation.html @@ -3624,7 +3624,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge enable that?

- You can either export as CSV suitable for MS Excel, what works out of the + You can either export as CSV suitable for MS Excel, which works out of the box or you can try native experimental MS Excel exporter. For enabling this you need to set $cfg['TempDir'] to place where web server user can write (for example './tmp') @@ -3639,6 +3639,14 @@ To create a new, empty mimetype please see libraries/transformations/template_ge (no stable version available yet) and then we tell pear we want to satisfy dependencies.

+

+ If you are running in PHP safe mode, you will have to set + in php.ini the safe_mode_include_dir to the directory + where your PEAR modules are located, for example: +

+
+    safe_mode_include_dir = /usr/local/lib/php
+

To create the temporary directory on a UNIX-based system, you can do: