[PHP] Re: Put text matching regex into array?
[EMAIL PROTECTED] (Leif K-Brooks) wrote in news:3DFE7849.5050102 @buyer-brokerage.com: Is there a way to put each part of a string matching a regex into an array? Example: $string = -_-_--- --_-_-- random text here-_; $array = regextoarray($string,[-_]{1,}); //Produces array of -_-_---,--_-_--,-_ or try ereg () with third argument. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: can I mail unlimited in one click?
[EMAIL PROTECTED] (Jan GrafströM) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hi, I wonder if I can mail 300 customers in one click? part of script: while($listrow = mysql_fetch_array($listresult)) { $recipient = $listrow[epost]; $subject = $subj; $message = $mess; $headers .= From: $admail\n; $headers .= Reply-To: $admail\n; $headers .= X-Mailer: PHP\n; mail($recipient, $subject, $message, $headers); } or is there a limit? Thanks for any help Jan Grafstrom take a look at set_time_limit (0); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: fgetcsv and end of line in values
i solved my prob with the latest stable snap. php 4.2.4. [EMAIL PROTECTED] wrote in news:20021107092154.13278.qmail;pb1.pair.com: greetings, i have problems using fgetcsv to explode a .csv file. some values consist of line-breaks. although these values are enclosed by quotes, php recognizes the line-break and starts a new dataset. the script workes fine in my old environment (win2k, apache 1.3.23, php 4.1.1), the problem occures in my new environment (win2k, apache 2.0.43, php 4.3.0). maybe config-params? i mentioned a new enclusure-attribute in fgetcsv since php 4.3.0. but experimenting with this didn't succeed. i also tried some different syntaxes in the delimiter-attrib of fgetcsv, no success. does anybody have any suggestion? thx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php