Jump to content

Problem with Large String and mysql_real_escape_string


SWD

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.