[PHP] How can a module find a resource in its environment.

2004-01-06 Thread Jost Boekemeier
Hi, if I understand this correctly, a module looses its context if it is required or included. For example I have a module foo/a.php which is required by b.php via require (foo/a.php). Unfortunately within the module a.php the cwd() is not foo but the context of b.php. The easiest way to fix

Re: [PHP] How can a module find a resource in its environment.

2004-01-06 Thread Richard Davey
Hello Jost, Sunday, January 4, 2004, 3:09:41 PM, you wrote: JB For example I have a module foo/a.php which is required by b.php via JB require (foo/a.php). Unfortunately within the module a.php the cwd() JB is not foo but the context of b.php. The easiest way to fix this would Makes sense. JB