Re: [PHP] Refer a class

2004-07-26 Thread Michael Ochs
> It's being copied somewhere. Maybe try this in the loadModule function: > $this->module[$name] =& new $name($this); > > You don't need the & for $this as you've defined the function to send > it by reference. It doesn't work, either. But I think maybe the problem is somewhere else, it seems that

Re: [PHP] Refer a class

2004-07-25 Thread Michael Ochs
Newsbeitrag news:[EMAIL PROTECTED] > If there is no error, check the values of all the vars and array > ellements in your logic for the first method. Make sure its actually > getting to the point where it instantiates the new object. > > Jason > > On Sun, 25 Jul 2004 19:36:44 +02

[PHP] Refer a class

2004-07-25 Thread Michael Ochs
Hi, I try to load some 'modules' into my class. These modules are other classes. I want to refer the main class to this new module but that doesn't work. At the moment it looks like this: Mainclass: function loadModule($name) { if(class_exists($name)) { //Class found if(!$this->modul

[PHP] Re: How can I tell if a path is absolute?

2004-07-17 Thread Michael Ochs
Hi, maybe you could try it with regular expressions! "[A-Z]:\\" or better "[C-Z]:\\" because A and B is used just for floppy drives... Take a look at www.php.net/preg_match/ Bye, Michael "Trejkaz Xaoza" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi! > > I used to detect