Re: Best Way to Pass Variables between PHP files

From: Date: Sun, 09 Apr 2006 01:17:41 +0000
Subject: Re: Best Way to Pass Variables between PHP files
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-233597@lists.php.net to get a copy of this message
I tired sending via name-value pairs with the following but it did not work require (DIR_WS_INCLUDES . 'filenames.php?lv_user_id=$user_id'); "DIR_WS_INCLUDES" is a defined constant and filenames.php is NOT a web page; just a php file that sets the file names to be used in the application. Is there a way I can do it with include or require? thanks Alan "Al" <news@ridersite.org> wrote in message news:A1.9A.09839.CED58344@pb1.pair.com... > Alan Schneider wrote: >> What is the best way to pass variable values from one php file to another >> >> thanks >> >> Alan > > $_GET is the simplest if: > > The size of the variables is small, there aren't too many and whether you > care if users see it.

« previous php.general (#233597) next »