[PHP] PEAR send mail problem

2003-07-29 Thread Andrew D. Luebke
Hello, I'm writing a program to send mail via the PEAR Mail module. Here is some code fragments: require_once "Mail/Mail.php"; require_once "Mail/Mime.php"; . . $body = $mime->get(); $headers = $mime->headers($headers); $mail =& Mail::fa

[PHP] Assignment operator questions

2003-05-31 Thread Andrew D. Luebke
Is it possible to do the following in PHP a = b = c; Which in C, for instance would set b and a equal to c. Thanks. Andrew. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regexp question...

2003-05-27 Thread Andrew D. Luebke
OK, here is the regexp command I am trying to use: $split_filename = preg_split('/\./', $_FILES["userfile"]["name"], -1); However, when I do a count($split_filename) I don't get what I expect. For instance if the input is: abc.xyz.123 I get 2 from count, why doesn't preg_split put three ele