mi era venuto il sospetto che il tipo di carattere longtext non riuscisse a contenere tutto il testo che inserivo, però sul sito di mysql viene riportato quanto segue:

codice:
A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters
 The effective maximum length is less if the value contains multi-byte characters. 
The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory. 
Each LONGTEXT value is stored using a four-byte length prefix that indicates the number of bytes in the value.
quindi il difetto credo risieda nella configurazione del server remoto.... Spero che qualcuno mi smentisca.....