Date: 02/14/00
- Next message: Arne Brune Olsen: "[PHPLIB] PHP4b3/PHPLIB and undefined var's"
- Previous message: Marcus Vinicius Laranjeir: "[PHPLIB] PHPLib Auth"
- Next in thread: Manuel Hossfeld: "Re: [PHPLIB] problem with auto_init"
- Reply: Manuel Hossfeld: "Re: [PHPLIB] problem with auto_init"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This message was sent from Geocrawler.com by "andreas otto" <andreas <email protected>>
Be sure to reply to that address.
well, i try to use auto_init in one of my classes
to access some variables defined in setup.inc but
when i load a page which should display the
content of the variables nothing happens.
maybe it is just a stupid kind of
misunderstanding how that process works but after
all the time starring at the code i can't see
what else i could do.
here is what is in my class definition:
class mm4_Session extends Session {
var $classname = "mm4_Session";
var $cookiename = "";
var $magic = "Hocuspocus";
var $mode = "cookie";
var $fallback_mode = "get";
var $lifetime = 0;
var $that_class = "mm4_CT_Sql";
var $auto_init = "setup.inc";
var $gc_probability = 5;
var $allowcache = no;
}
here is what is in my setup.inc:
global $images;
$images = "images";
$sess->register("images");
and this is how i try to access the variables in
my page:
<?php
page_open(
array("sess" => "mm4_Session"));
?>
<html>
<head>
</head>
<body>
images: <?php print $images; ?>
</body>
</html>
<?php page_close(); ?>
hopefully someone give me an idea what is going
wrong here.
cheers,
andreas
Geocrawler.com - The Knowledge Archive
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Arne Brune Olsen: "[PHPLIB] PHP4b3/PHPLIB and undefined var's"
- Previous message: Marcus Vinicius Laranjeir: "[PHPLIB] PHPLib Auth"
- Next in thread: Manuel Hossfeld: "Re: [PHPLIB] problem with auto_init"
- Reply: Manuel Hossfeld: "Re: [PHPLIB] problem with auto_init"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

