Re: SV: SV: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
On Tue, 25 Sep 2001 17:46, Bård Tommy Nilsen wrote: > Can you write me an short example ?? > > > Bård Tommy Nilsen [About passing arguments to functions and global scoping] Declaring $id global: function doit() { global $id; echo $id; } $id = 1; doit(); output is 1 Passing $id as parameter:

SV: SV: [PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
Can you write me an short example ?? Bård Tommy Nilsen -Opprinnelig melding- Fra: David Robley [mailto:[EMAIL PROTECTED]] Sendt: 25. september 2001 10:11 Til: Bård Tommy Nilsen; [EMAIL PROTECTED] Emne: Re: SV: [PHP] Including files without loosing my string On Tue, 25 Sep 2001 17

Re: SV: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
r 2001 09:56 > Til: Bård Tommy Nilsen; [EMAIL PROTECTED] > Emne: Re: [PHP] Including files without loosing my string > > On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote: > > Hello ! > > > > I am trying to keep my string after including av file. > &g

SV: [PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
But i wanted to show what i am after, and that is that the id string cant be called after including index.php ... Bård Tommy Nilsen -Opprinnelig melding- Fra: David Robley [mailto:[EMAIL PROTECTED]] Sendt: 25. september 2001 09:56 Til: Bård Tommy Nilsen; [EMAIL PROTECTED] Emne: Re:

Re: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote: > Hello ! > > I am trying to keep my string after including av file. > > file1.php: > (accessed with file1.php?id=1) > > include 'index.php'; > > function func() { > echo "buddy"; > } > ?> > > index.php: > echo "Hello"; > if (function_exists('f

[PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
Hello ! I am trying to keep my string after including av file. file1.php: (accessed with file1.php?id=1) index.php: 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]