Re: [PHP] Passing Variables and the include command

2001-09-18 Thread Rasmus Lerdorf
Included files share the same global symbol table as the parent file. So, simply do: $file = "somefile.txt"; include "counter.php"; And by the way, please don't use "$file". It makes no sense. Just $file. -Rasmus On Tue, 18 Sep 2001, Andrew V. Romero wrote: > I was wondering if it is possi

[PHP] Passing Variables and the include command

2001-09-18 Thread Andrew V. Romero
I was wondering if it is possible to pass some variables to a php file that will be accessed via the include command? For example, I am working on creating a nicer "hits" counter and would like to just write the code for the counter once and then have each page access that counter.php3 and pass a