Ограничение размера почтового запроса json (теперь проверенная ошибка php-mysqli) - PullRequest
3 голосов
/ 05 марта 2009

Я отправляю запрос в мое PHP-приложение через JJ-кодированный AJA-запрос (процесс формы). Пост-запрос с длиной символа 4174 успешно обработан, и результат получен правильно. Добавление еще одного символа в запрос приводит к тому, что мое приложение зацикливается до тех пор, пока не возникнут ошибки Apache2. Есть только 2 поля, одно для трехзначного идентификатора, а остальное - текст из текстовой области.

Я использую Zend Framework для управления своим приложением, Apache2.2.3, PHP 5.2.8, плагин JSON версии 1.2.1, MySQL 5.0.77

У кого-нибудь есть идеи ...

вот еще одно обновление :: отслеживал эту проблему, чтобы НЕ проблему с запросом json, но проблему с запросом, который я выполняю. Я выполняю запрос INSERT ON DUPLICATE KEY UPDATE, который увеличивает размер текста запроса. Я могу запустить этот запрос найти из командной строки, однако из PHP это не удается. В настоящее время исследуется вопрос. Все желающие могут увидеть запрос здесь ..

** это ошибка с плагинами mysqli для php, по какой-то причине обработчику db не нравится этот код. Если / когда у меня будет время, чтобы правильно проверить, вы увидите мои результаты. **

INSERT INTO element_attribute_values (ElementAttributeId,ElementId,value) VALUES  (1,'553','444st text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this itext this itext this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sotext this ime test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex tesxthis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is fsome test texttext this i this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sometext this i test text this is some test text this is some test text this is sothis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text thisf iffffffff4444') ON DUPLICATE KEY UPDATE value='444st text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this itext this itext this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sotext this ime test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test tex tesxthis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is fsome test texttext this i this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is sometext this i test text this is some test text this is some test text this is sothis is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text this is some test text thisf iffffffff4444'

Ответы [ 2 ]

0 голосов
/ 21 августа 2009

Вы можете просто проверить длину вашей строки, и, если она превышает предел, разделить ее. Запустите первую часть вставки, затем выполните обновление += для поля со второй частью. Это немного грубо, но в нем есть ошибка.

0 голосов
/ 05 марта 2009

Я не знаю, связано ли это или нет, но я недавно использовал jQuery, используя метод $ .ajax () для отправки данных POST из текстового поля в скрипт php. Затем скрипт php будет анализировать данные (XML) на предмет битов информации, которые мне нужны. Я заметил ошибку в моем выводе firephp, что он не смог разобрать XML из формы POSTed. Затем я получил вывод strlen () и данных и заметил, что он сокращает его с 7 байт до 268 (или 256, или что-то еще, я забыл точное количество). Это сделало его неполной и недействительной кучей данных XML. Я исправил это, используя метод $ .post (). Работал отлично.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...