Try to reproduce the error with
$mysql = mysql_connect(...
printf("<pre>Debug: count(_POST)==%d</pre>", count($_POST));
foreach ($_POST as $key => &$value) {
printf("<pre>Debug: strlen(_POST[%s])==%d</pre>", htmlspecialchars($key), strlen($value)); flush();
$value = mysql_real_escape_string($value, $mysql);
}
printf("<pre>Debug: Done.</pre>");
Is something "unusual" printed before the message "Allowed memory of 268435456 bytes in size"?
edit btw: "", real_escape_string :
- _POST, . ( magic_quotes, ;-))
- , , , . " , _POST", - . , , . , , , [ , / , ]