|
Rod Cambridge - 2005-10-05 20:52:42
Hi Olaf!
I've been using the Access User Class for some months now while I develop my site. It's been very stable and reliable for all of this period. However, in the last week, I've noticed that when I open my site in a browser, (I.E or Firefox), I get the errors listed below.
If I shut down and reopen the browser sometimes the page loads normally - it's very intermittent and does not seem to be consistent.
Care to point me in the right direction?
BTW: I last updated the Class in July.
:o)
Rod.
Errors are as follows:
Warning: session_start(): open(/tmp/sess_16d1e0b7ce886899406d81b28492c8b3, O_RDWR) failed: Permission denied (13) in /content/StartupHostPlus/e/x/www.<xxxxxxx.com/web/classes/access_user/access_user_class.php on line 30
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /content/StartupHostPlus/e/x/www.xxxxxxx.com/web/classes/access_user/access_user_class.php:30) in /content/StartupHostPlus/e/x/www.xxxxxxxx.com/web/classes/access_user/access_user_class.php on line 30
Olaf Lederer - 2005-10-06 05:53:16 - In reply to message 1 from Rod Cambridge
Hello, maybe you have some whitespace at the top of script...?
gr. Olaf
Rod Cambridge - 2005-10-06 11:49:18 - In reply to message 2 from Olaf Lederer
Thanks Olaf,
No.... no whitespace at either the top or bottom of the file.
It's strange because the issue is so intermittent. I'm guessing that if it was a whitespace issue, it would be more consistent?
Cheers,
Rod.
Olaf Lederer - 2005-10-06 14:59:52 - In reply to message 3 from Rod Cambridge
Rod Cambridge - 2005-10-06 21:31:15 - In reply to message 4 from Olaf Lederer
Thanks Olaf,
I did have a browse on google a few days back when I noticed the problem but on first glance could not see anything relevant.
I'll look at these in more detail and will let you know how I get on.
Keep up the good work!
Rod.
Rod Cambridge - 2005-10-15 22:14:42 - In reply to message 5 from Rod Cambridge
Olaf,
Just a quick note to let you know that after reinstalling the lastest version of Access user Class, the errors have disappeared.
Not exactly sure why they started happening in the first place since I haven't touched the class in months.
Anyway - all is well now.
Thanks!
Rod.
Rod Cambridge - 2005-10-16 15:57:40 - In reply to message 6 from Rod Cambridge
Olaf,
Can I ask you one more question?
:o)
When registering users on my web site, I want to add a number of different fields which make up a profile of the user. (e.g. obvious ones like age and gender, but also others such as favourite foods, whether they have children, whether they are vegetarian, like sports, etc. etc.).
What's the best way to approach this?
For example, if I wanted to add a new field called Vegetarian, (y/n), at the regsitration stage, which functions in the class would I need to modify?
Sorry for such a basic question!!!
Best regards,
Rod.
Olaf Lederer - 2005-10-16 17:17:48 - In reply to message 7 from Rod Cambridge
check the "update_user_profile.php" example...
This class is build like the authentication functions of the big boards on th net. User data and additional data splitted in two sections.
What I often have done is that I use the extra_info field for all addtional user information (not profil) and use seperators to split them later...
Rod Cambridge - 2005-10-23 14:43:14 - In reply to message 8 from Olaf Lederer
Ahhhh..... Thanks for that.
>>What I often have done is that I use the extra_info field for all addtional
>>user information (not profil) and use seperators to split them later..
Can you give me an example of how to store the additional data in the extra_info fields?
Thanks!
Rod.
Olaf Lederer - 2005-10-23 15:13:04 - In reply to message 9 from Rod Cambridge
Like this
function create_extra_info($klant_num, $land, $taal, $show_prijzen = "") {
$str = $taal."|".$land."|".$klant_num."|".date("Y-m-d");
if ($show_prijzen == "") {
$str .= (in_array($land, $this->auto_countries)) ? "|1.0" : "|0.0";
} else {
$str .= "|".$show_prijzen;
}
return $str;
}
|