From: Dennis F. <de...@co...> - 2002-07-05 05:21:51
|
Hi, It's so simple you'll hate yourself for it :-D 1) scoop. If you do: $bla = "hello"; function a() { echo $bla; } will be empty. You will need to do: $bla = "hello"; function a() { global $bla; echo $bla; } And it'll work. 2) Or you can do define( "bla", "hello" ); function a() { //note the missing $ echo bla; } Good luck. Dennis Fleurbaaij ----- Original Message ----- From: "Marshall Rose" <mr...@db...> To: <cor...@li...> Sent: Friday, July 05, 2002 1:25 AM Subject: Re: [Core-lan-org-devel] jumbo edits, cvsdiff -u > one other thing, but it's a bit of a mystery. > > i added a configuration option, $SITE_IMGSRC, that, if non-empty, is > supposed to contain a URI pointing to an image to put up at the top of > the page. if you look at what i added to includes/screen.php, you'll see > how it gets used, i.e., > > + if( $SITE_IMGSRC != "" ) { > + echo "<TR valign=\"top\"><TD"; > + if( $no_menu == 0 ) > + echo " width=\"175\"></TD><TD"; > + else > + echo " colspan=\"2\""; > + echo " align=\"center\"><IMG src=\""; > + echo $SITE_IMGSRC; > + echo "\"></TD></TR>\n"; > + } > + > > now, here's the mystery, no matter what value i put into config.php for > $SITE_IMGSRC, the value in screen.php is always "". > > after staring at the code for an hour, i'm convinced that config.php is > always include'd before screen.php, so this just makes no sense. > > any ideas? > > thanks, > > /mtr > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Caffeinated soap. No kidding. > http://thinkgeek.com/sf > _______________________________________________ > Core-lan-org-devel mailing list > Cor...@li... > https://lists.sourceforge.net/lists/listinfo/core-lan-org-devel > |