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")
figure.
cheers,
jaxon
> -Original Message-
> From: Renze Munnik [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 4:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] RE: help, weird include problem with functions
>
>
> On Thu, Aug 09, 2001 at 02:05
> function incl_common()
> {
> global $modroot; //modroot is defined as http://localhost/modules in a
settings file
>
> echo "$modroot from included"; //this echos
"http://localhost/modules"; properly
>
>
> //the below throws the error, OpenDir: No such file or directory
(error 2) in
yes, I'm sure the directory exists :)
here is the actual code, I suppose this would have been more helpful to
start:
http://localhost/modules in a
settings file
echo "$modroot from included"; //this echos "http://localhost/modules";
properly
//the below throws the error, OpenDir: No such file
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:
>function foo{
> global $bar
.
hmmm...
jaxon
> -Original 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
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 a
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 happe
oh, this still happens when I fix the missing () in the foo declaration :)
cheers,
jaxon
> -Original Message-
> From: Jaxon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 12:34 PM
> To: [EMAIL PROTECTED]
> Subject: help, weird include problem with functions
>
>
>
> can a
9 matches
Mail list logo