Re: [PHP] RE: help, weird include problem with functions

2001-08-10 Thread Renze Munnik
On Fri, Aug 10, 2001 at 08:22:57AM -0400, Jaxon wrote: Renze, I found that it works if I pass only a variable or a path in, not both. e.g. opendir(/path/to/foo) works opendir($variable) where variable contains path/to/foo also works opendir($somevar/some/path) does NOT work.

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Clayton Dukes
You need to include settings.php in functions.php. - Original Message - From: Jaxon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 12:48 PM Subject: [PHP] RE: help, weird include problem with functions oh, this still happens when I fix the missing

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Renze Munnik
On Thu, Aug 09, 2001 at 12:48:38PM -0400, Jaxon wrote: oh, this still happens when I fix the missing () in the foo declaration :) cheers, jaxon Works fine, no problems at all! Are you sure function.php is included at all? Because if the only problem would be $bar, the output would at

RE: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Jaxon
Message- From: Renze Munnik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 1:06 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] RE: help, weird include problem with functions On Thu, Aug 09, 2001 at 12:48:38PM -0400, Jaxon wrote: oh, this still happens when I

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Renze Munnik
On Thu, Aug 09, 2001 at 01:15:41PM -0400, Jaxon wrote: hmm...yes, it does work, I jumped the gun on the simple example, cuz I thought it was an echo problem.. my un-simplified example has an opendir() in function foo() file. function.php is: ?php function foo{ global $bar;

RE: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Jaxon
yes, I'm sure the directory exists :) here is the actual code, I suppose this would have been more helpful to start: ?php function incl_common() { global $modroot; //modroot is defined as http://localhost/modules in a settings file echo br$modroot from included; //this echos

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Richard Lynch
?php function incl_common() { global $modroot; //modroot is defined as http://localhost/modules in a settings file echo br$modroot from included; //this echos http://localhost/modules; properly //the below throws the error, OpenDir: No such file or directory (error 2) in