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:[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 fix the missing () in the foo > declaration :) > > > > cheers, > > jaxon > > > > > Works fine, no problems at all! > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]