Problems with class and included files

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Problems with class and included files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27044@lists.php.net to get a copy of this message
Hello, Have this configuration: win95 php4.02 pws Have this class in myclass.php: class FOO{ function FOO() { } function myfoo() { print "<HTML>Html stuff $CONFIG[\"config1\"]"; print "more html stuff $CONFIG[\"confign\"]"; } } All definitions of array $CONFIG are kept in myconf.php When I want to use clas FOO in a php file, I go: include "myconf.php"; include "myclass.php" $objFoo = new FOO(); $objFoo->myfoo(); The problems is that array $CONFIG doesn't show any values. Please send e-mail directly I use digest list. Thank you, ------------------- Eduardo Jordan Webmaster - Impsat ------------------------------------------------- Interactive si responde Este mensaje fue enviado desde: http://webmail.interactive.net.ec

« previous php.general (#27044) next »