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
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
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
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
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
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
6 matches
Mail list logo