[PHP] Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
What is the best way to pass variable values from one php file to another

thanks

Alan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Passing Variables from Script to Script

2006-04-08 Thread Alan Schneider
What is the best way to pass a variable value from one script to another?

In unix or dos all I would need to do would be to add them just after the
name of the script

such as myscript.bat  

thanks

Alan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
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 [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 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. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php