[PHP] [NEWBIE] PEAR Help

2005-02-21 Thread Brett Patterson
Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. I'm trying to get my contact script to work with the PEAR::Mail extension. So I followed the tutorial on pear.php.net about using the object = Mail::factory() and then the object::send() method to

[PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Brett Patterson
Hello all. I am new to using PEAR, but not so much to PHP. I was looking for a little help. I'm trying to get my contact script to work with the PEAR::Mail extension. So I followed the tutorial on pear.php.net about using the object = Mail::factory() and then the object::send() method to

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
First off, this is not the most efficient way to send mail as it closes reopens connections to the server for each mail. Look into using PEAR. Secondly, I would not loop through everything for each email address. One way to do it would be to say: If($email_to != ){ $to = explode(,,

RE: [PHP] Sessions and cookies

2005-02-21 Thread Brett Patterson
Well, if you look in your phpinfo() file, you will see a SESSION_TIMEOUT or SESSION_LENGTH value that is something like 18... different for each server. If you hold all your session values in the array, then you can use session_destory(); as long as session_start() is previous to that. I am