Trying to insert a log record in my logs table I but in some way when the value of the field value is more than 199 characters My Apache is restarted and my browsers say net :: ERR_CONNECTION_RESET I am using the Zend Framework, so I include my record with the following lines of code:
$ db = Global_Db_Connection :: getInstance (); $ Sql = "in putting log_table (log) values ( 'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd')"; $ Db- & gt; Query ($ SQL); If I do not use the framework, then its use:
mysql_query ($ sql); Then I have no problem.
Can anyone tell me how to fix this limit in Zend?
FreeBSD on this same problem I have also come to know that when it is trying to incorporate it into a table that does not exist, then it gives the same error only after shortening the value that it provides the error that the table is not present.
May be delayed in answering, but I have the soul, I found two solutions for Zend:
-
$ db-> Mill Connection () - & gt; Query ($ sql); // code () -
$ db-> Exec ($ sql); This problem is due to the memory stack size increases according to the requirement of the stack on Linux, but Windows & amp; Because of the size of the Mac stack, this problem becomes bubbles for it. There is a ticket raised for it (php.net) Take a look. enjoy!
Comments
Post a Comment