Re: [phplib] the lost $_PHPLIB["libdir"]-variable From: Holger Blasum (blasum <email protected>)
Date: 11/25/00

Mike,

judging from PHP3 I guess you had just run into the classic "didn't declare
global variables inside a function environment" glitch. Simply declare
$_PHPLIB and $_INC as global
before using them. It also may be a good habit for larger projects to
set error_reporting (31) so that PHP will bemoan undeclared variables.

HTH (if that didn't help just post again...).
 
Holger Blasum, Munich

> ----- and now the crap :
> _______________________________________________
> function display_header ($title="", $include_header) {

           global $_PHPLIB;
           global $_INC;

>
> if($bn == "private_forum"){
> $_INC["incdir"]= "../inc/";
> $_PHPLIB["libdir"] = $_INC["incdir"]."php/";
>
> include($_INC["incdir"]."prepend.php4");
>
> page_open(array(
> "sess" => "P_Session",
> "auth" => "P_Auth"));
> }

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>