[PHP] Writing my own web based user forum

2008-08-01 Thread Jason Pruim
Hi Everyone, I am looking at writing my own web based user forum somewhat for my own knowledge, and because I know that I don't know enough to be able to tie in authentication so they only need 1 user account. Does anyone have any examples short of downloading something like phpbb and

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Bernhard Kohl
?php #User authentication should not be a problem at all. #If you want it simple just serialize a user class and write it to a file or into a DB. class user { var $username; var $pw; function set_user($name, $pw) { $this-pw = md5($pw); $this-username = $name; return true; } } $new_user

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Jason Pruim
So are you suggesting, create the users in the forum, and then just serialize/unserialize when needed to store the info so when they go to the picture upload side it queries the forum database? On Aug 1, 2008, at 8:07 AM, Bernhard Kohl wrote: ?php #User authentication should not be a

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Yeti
If I fully understood the question you were asking then no. Since it seems you are using a database there is no need to serialize. You can write a simple function that fetches user data from a DB query and then creates the object. If you are going to use sessions you will have to do that only when

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Jason Pruim
The problem with that is I don't have any code to show since I'm going to be writing it :) Basically, it's a site where people can upload pictures to compare with other's (Non-porn) so I need to write an authentication system for that, but that is taken care of... Another aspect of the

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Eric Butera
On Fri, Aug 1, 2008 at 9:27 AM, Jason Pruim [EMAIL PROTECTED] wrote: The problem with that is I don't have any code to show since I'm going to be writing it :) Basically, it's a site where people can upload pictures to compare with other's (Non-porn) so I need to write an authentication