Re: Problems with require.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not email me personally; keep your questions on the list. There are a lot of good reasons for this... most importantly being that I am not your paid tech support person ;)


S wrote: Im actually not defining the pear include in my PHP.ini file. Im defining it in the application itself. the line where i set the include path is as follows:

$PEAR_DIR = $_SERVER['DOCUMENT_ROOT'] . '/PEAR';

$PHPLIB_DIR = $_SERVER['DOCUMENT_ROOT'] . '/phplib';

$APP_FRAMEWORK_DIR = $_SERVER['DOCUMENT_ROOT'] . '/testing/ch4/class';

$PATH = $PEAR_DIR . ':' .
		$PHPLIB_DIR . ':' .
		$APP_FRAMEWORK_DIR;

I have tried hard coding the locations rather than using the $_server
call (putting C:\wamp\www\pear) but that did not help.

Any more ideas whats wrong?


Again I say: your seperator is wrong. Use a semicolon instead of a colon i.e.


$PATH = $PEAR_DIR . ';' . $PHPLIB_DIR . ';' . $APP_FRAMEWORK_DIR;

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux