[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Øystein Håland
Since I'm new to the subject have patience with my 'stupid' questions. On the form-page I don't have a session_start(), right? But, this means the session will not be set before I reload the check_users.php? >From what I can see the session var is a string exactly a copy of the input (the csv, txt

Re: [PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Chris Hayes
At 17:36 26-6-03, you wrote: you could use a $_SESSION variable instead of file or when the data come in, you can put them into an array and pass on the array through a hidden form field. before putting it in the hidden field serialize the array and in the receiving page unserialize it. http://n

[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Pete Morganic
you could use a $_SESSION variable instead of file > $filename = "addusers.txt"; > if (isset($users)) { > $temp = $_POST['users']; > $handle = fopen("$filename", "w+"); > fwrite($handle, $temp); > > $users = file("$filename"); > if (ereg("\t", $users[0]) == true) $separator = "\t"; // om texten är