RE: [PHP] RE: help, weird include problem with functions
| From: | Jaxon | Date: | Thu, 09 Aug 2001 17:15:41 +0000 |
| Subject: | RE: [PHP] RE: help, weird include problem with functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62021@lists.php.net to get a copy of this message | ||
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;
echo "$bar from foo"; //this is working
$handle=opendir("$bar/common/"); // I get a "OpenDir - no such file or
directory"
//some more stuff here to handle directory maniuplaion
}
foo();
?>
so the simple example does indeed work, but the opendir() is choking trying
to deal with the variable.
hmmm...
jaxon
> -----Original Message-----
> From: Renze Munnik [mailto:renze@datalink.nl]
> Sent: Thursday, August 09, 2001 1:06 PM
> To: jaxon@salamander.net; php-general@lists.php.net
> 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 fix the missing () in the foo
> declaration :)
> >
> > cheers,
> > jaxon
> >
>
>
> Works fine, no problems at all!
>
>
>