RE: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Erik Osterman
Didn't know that it's RFC 1521 specific header and not valid in HTTP. =) Thanks, Erik Osterman http://osterman.com/ -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:21 AM To: Erik Osterman; [EMAIL PROTECTED]; [EMAIL

RE: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Erik Osterman
case 'pdf': $mimeinfo = "application/pdf"; break; case 'doc': $mimeinfo = "application/msword"; break; default:$mimeinfo = "application/octet-stream"; } Regards, Erik Osterman http://osterman.com/ -Original Message

RE: [PHP] Downloading MySQL Files

2003-11-10 Thread Erik Osterman
contains the raw binary form of the file you wish to send. Regards, Erik Osterman http://osterman.com/ -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 5:07 PM To: PHP List Subject: [PHP] Downloading MySQL Files I have a database which

RE: [PHP] Array --> If

2003-11-07 Thread Erik Osterman
Sounds like what you want is the "in_array" function. http://us4.php.net/manual/en/function.in-array.php $cases = array( 5, 15, 30, 60, 90, 120 ); if ( in_array($count, $cases) ) { EXECUTE PAGE } Regards, Erik Osterman http://osterman.com/ -Original Message- F

RE: [PHP] advise on new class of mine

2003-11-07 Thread Erik Osterman
remature optimization is the root of all evil" Best Regards, Erik Osterman http://osterman.com/ -Original Message- From: jsWalter [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 4:12 PM To: [EMAIL PROTECTED] Subject: [PHP] advise on new class of mine I'm in the pro

RE: [PHP] Adding a log file

2003-11-07 Thread Erik Osterman
code) in $file on line $line '$code'"); print ""; } // Set up the callback assert_options (ASSERT_CALLBACK, 'assert_callback'); Regards, Erik Osterman http://osterman.com/ -Original Message- From: Robert Sossomon [mailto:[EMAIL PROTECTED]

RE: [PHP] *SOLVED* [PHP] problem transferring a variable using POST

2003-11-07 Thread Erik Osterman
"[$query]"; return mysql_query($query); } Usage: $result = Query("INSERT INTO foo (var1, var2) VALUES( ?, ? )", $_POST[var1], $_POST[var2]); Regards, Erik Osterman http://osterman.com/ -Original Message- From: Davy Campano [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP] (Semi OT) Number of concurent Users.

2003-11-07 Thread Erik Osterman
ould be not less than the number of concurrent connections on the machine. Well, that's that... Hope your PHP code is well written. :) Erik Osterman http://osterman.com/ -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 12:55 PM To: [EMAIL PR

RE: [PHP] Multiple attachments in an email

2003-11-07 Thread Erik Osterman
http://www.php.net/mail includes an example of sending emails with multiple attachments. For a more structured approach, try using Mail_Message @ http://opensource.visionp.biz/Mail_Message.120.0.html Regards, Erik Osterman http://osterman.com/ alex at bartl dot net 28-Nov-2002 09:25