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

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 site

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
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: pw = md5($pw); $this->username = $name; retur

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

2008-08-01 Thread Bernhard Kohl
pw = md5($pw); $this->username = $name; return true; } } $new_user = new user(); if ($new_user->set_user('Joe', 'swordfish') { $fp =@ fopen('/some_dir/users.txt', 'a'); @fwrite($fp, serialize($new_user)); @fclose($fp); } # the next time you need it simple read it in again with unserialize

[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 tea