cvs: pear /PEAR_Frontend_Web/docs example.php
| From: | Christian Dickmann | Date: | Wed, 12 Jun 2002 21:47:42 +0000 |
| Subject: | cvs: pear /PEAR_Frontend_Web/docs example.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4588@lists.php.net to get a copy of this message | ||
dickmann Wed Jun 12 17:47:42 2002 EDT
Modified files:
/pear/PEAR_Frontend_Web/docs example.php
Log:
fix for windows
Index: pear/PEAR_Frontend_Web/docs/example.php
diff -u pear/PEAR_Frontend_Web/docs/example.php:1.4 pear/PEAR_Frontend_Web/docs/example.php:1.5
--- pear/PEAR_Frontend_Web/docs/example.php:1.4 Sun Jun 9 17:25:56 2002
+++ pear/PEAR_Frontend_Web/docs/example.php Wed Jun 12 17:47:42 2002
@@ -15,13 +15,19 @@
* by Christian Dickmann <dickmann@php.net>
*/
-
+ require_once(dirname(__FILE__).'/PEAR/PEAR.php');
+ if (OS_WINDOWS) {
+ $seperator = ';';
+ } else {
+ $seperator = ':';
+ };
+
// Rebuild Includepath (optional)
$include_path = array(
'.',
dirname(__FILE__).'/PEAR',
);
- ini_set('include_path', implode(':', $include_path));
+ ini_set('include_path', implode($seperator, $include_path));
// Configfile
$pear_user_config = dirname(__FILE__)."/pear.conf";