[PHP] Limitation in preg_match ?

2005-03-29 Thread Cedric Fontaine
Hello, I'm using a script to parse mail and extract attachments on-fly. But I think that this preg_match (preg_match("#([-]+|)$bound(.+?)([-]+?)$bound#is", $data, $strip)) doesn't work at all if content is too big (for ex 7Mo). Is there any known limitation on it ? I'm using php 4.3.10 and this

Re[3]: [PHP] Using php to parse mail

2002-05-24 Thread Cedric Fontaine
Hello, MC> For one thing, change your php invocation to 'php -q'. Yes, I've done this, even php -q -d phpa=0 to avoid phpa messages... But same problem ! -- Cordialement, Cedricmailto:[EMAIL PROTECTED] http://www.sincever.com : Actu Music Only -- PHP General Ma

Re[2]: [PHP] Using php to parse mail

2002-05-24 Thread Cedric Fontaine
Hello, MC> qmail uses the exit code to determine what happened to the message. Try MC> ending your script with exit(99); that tells qmail that you're done with MC> the message and never want to see it again. MC> miguel Yep but it doesn't work anymore with a such exit(99)... But it's something

Re[2]: [PHP] Using php to parse mail

2002-05-24 Thread Cedric Fontaine
Hello ! AS> Are you calling environment or server variables directly? For _example_ AS> $PATH. If so, call them using the superglobal $_SERVER['PATH']. Or AS> perhaps you're utilizing $argv to bring in stuff from the command line? AS> Similarly, use $_SERVER['argv']. AS> These chagnes are

[PHP] Using php to parse mail

2002-05-24 Thread Cedric Fontaine
Hello ! Since some months, I created a bot to parse a special email address. It means that my MTA Qmail sends the mail to a php script and this scripts make some works on it. It works great for months with php 4.0.6. Sunday, I installed php 4.2.1 mod for Apache and also on shell. And since this