Just a follow-up on this, the problem was 'Fatal error: Allowed memory
size of 8388608 bytes exhausted'
After some nice help, I found that this is actually a common problem
with intense regexes in php. Quick fix is using ini_set() to increase
your memory_limit to something massive, like '400M'
Does anyone know why a server would simply fail on this line?
$num = preg_match_all($regex, $theData, $match, PREG_SET_ORDER);
if i know the file handle is valid (i grabbed it using 'or die'), and
the regex is valid
hamy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
2 matches
Mail list logo