RE: [PHP] register session

2002-04-03 Thread Vlad Kulchitski
Kris, Idi na phpbeginner.com tam est 'tutorials' dlya tebya. Vlad -Original Message- From: Kris Vose Sent: 3 êâ³òíÿ 2002 ð. 12:42 To: [EMAIL PROTECTED] Subject: [PHP] register session I am trying to register a session after verification of username and password. It looks like this:

RE: [PHP] register session

2002-04-03 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Make sure you have session_start() before any output is sent to the browser, also look for whitespace at the top of your file, sometimes a blank line or a space can cause this error. The reason you get this error is session_start() needs to add information to the headers but because they have

Re: [PHP] Register session in function without global?

2001-03-22 Thread CC Zona
In article 99dn35$duo$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Tobias Talltorp") wrote: I am trying to register a session variable in a function without using the global in the beginning. You can pass the variable(s) to the function as an argument. Perhaps it will be easier to deal with a

Re: [PHP] Register session in function without global?

2001-03-22 Thread Chris Lee
so your trying to take a list of variables and register them as session vars? ?php function make_session($vars) { $vars = explode('|', $vars); foreach($vars as $pos = $val) { global $val; session_register($val); } } ? this will work for that. -- Chris Lee [EMAIL

Re: [PHP] Register session in function without global?

2001-03-22 Thread Tobias Talltorp
Well... Whadda ya know. Right after I sent the post I figured it out. (Solution? Variable variables!) function register_vars($reg_var) { // Make the $reg_var global $global_vars=explode("|", $reg_var); for ($i=0; $isizeof($global_vars); $i++) global $$global_vars[$i]; //