[PHP] [GD] Image errors

2009-07-14 Thread Il pinguino volante
Hi to all I get a problem processing an image with GD libraries. This is my function public function showPicture($id) { header('Content-type: image/jpeg'); $mime = mime_content_type($this-updir.$id.'.png'); $type = explode('/',$mime); $type =

[Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Il pinguino volante
(There were some erroros in the previous email, I'm sorry) Hi to all. I have to realize an authentication system for a lot of users. I heard that someone uses to store session states (?) into a database. I'd like to know how and, expecially, WHY to do it and what's would be better

[PHP] Sessions in databases

2009-10-06 Thread Il pinguino volante
Hi to all. I have to realize an authentication system for a lot of users. I heard that someone uses to store session states (?) to a database. I'd like to know how by expecially WHY doing that and what's would be better (considering that I can -d'oh!- touch the php.ini file). Thanks in