2009-03-04 6 views
3

PHP uygulamasına bir JSON kodlu ajax isteği (form süreci) aracılığıyla bir istek gönderiyorum. 4174 karakter uzunluğunda bir istek sonrası işlemi başarıyla işlenir ve sonuç doğru şekilde alınır. İsteğinize bir ek karakter eklemek, Apache2 segment hatalarına kadar uygulamamın sonsuza kadar döngü yapmasına neden oluyor. Biri 3 basamaklı bir kimlik için yalnızca 2 alan var, gerisi metin alanından bir metin.json gönderi istek boyutu sınırı (şimdi doğrulanmış bir php-mysqli hatası)

ben ... 5.0.77

Herkes herhangi bir fikir var başvurumu, Apache2.2.3 PHP 5.2.8 JSON eklenti sürümü 1.2.1, MySQL sürmek için Zend Framework kullanıyorum

Burada başka bir güncelleştirme var :: bu sorun bir json isteği sorunu değil, ancak çalışıyorum sorgu ile ilgili bir sorun izlenir. Sorgunun metin boyutunu şişiren DUPLICATE KEY UPDATE sorgusu üzerinde bir INSERT gerçekleştiriyorum. Bu sorguyu komut satırından çalıştırabilirim, ancak PHP'den başarısız oluyor. Şu anda sorunu araştırıyor. İlgilenen herkes bu sorguyu görebilirdi ..

** Bu, php için mysqli eklentileri ile ilgili bir hatadır, nedense db işleyicisi bu kodu sevmiyor. Ben düzgün test etmek için zamanın olunca, benim sonuçları göreceksiniz/edin. **

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' 
+0

Daha fazla bilgi için lütfen rapor verin! – Evert

+0

Elbette, bir Apache çarpması muhtemelen PHP modülünde bir hata var demektir. Muhtemelen PHP işlevinin ne kazandığını öğrenmek ve bir geçici çözüm bulmak istersiniz. Kodunuzdaki hangi hattın, herşeyi çökerten olduğunu takip edebilir misiniz? –

cevap

0

bu ilişkili olup olmadığını ama son zamanlarda kullanarak jQuery kullandıysa bilmiyorum $ .ajax() POST verilerini bir metin alanından bir php komut dosyasına göndermek için yöntem. Php betiği daha sonra ihtiyacım olan bilgi bitleri için verileri (XML) ayrıştırırdı. Firephp çıktımda, XML'in POSTed formundan ayrıştırılamadığına dair bir hata fark ettim. Daha sonra strlen() ve verileri çıktı aldım ve bunu 7k bayttan 268'e (ya da 256 ya da tam miktarını unuttuğum bir şeyden) kesme olduğunu fark ettim. Bu, eksik ve geçerli bir XML veri yığını haline getirdi. Bunun yerine $ .post() yöntemini kullanarak bunu düzeltdim. Mükemmel çalıştı.

0

Yalnızca dizenizin uzunluğunu kontrol edebilir ve sınırın üstündeyse bölün. Eklemdeki ilk kısmı çalıştırın, ardından ikinci kısım ile sahada bir += güncellemesi yapın. Bu biraz ham, ama bu böceklerin etrafında oluyor.