SWD Posted July 22, 2010 Share Posted July 22, 2010 Hi all, First time poster here. Got a major tech problem that I can seem to find a solution to. Basically we have a HTML page effectively loaded into a PHP variable which we want to insert into a MySql table. Unfortunately what we're finding is that the second we call mysql_real_escape_string the script crashes (even though no error is written to the error log). The string is 12449 characters long if that helps. As far as I can tell we're not receiving any errors even from mysql. Anyone know of how to deal with this scenario? Any help would be really appreciated. Josh Link to comment https://forums.phpfreaks.com/topic/208537-problem-with-large-string-and-mysql_real_escape_string/ Share on other sites More sharing options...
AbraCadaver Posted July 22, 2010 Share Posted July 22, 2010 Even with this, you get no errors? error_reporting(E_ALL); ini_set('display_errors', '1'); If not, you should look in your OS logs, (syslog, event viewer, etc.) to see if there was a segfault or something. Link to comment https://forums.phpfreaks.com/topic/208537-problem-with-large-string-and-mysql_real_escape_string/#findComment-1089644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.