I am uploading files with an FTP function, but the files are truncated at a size of 4k. Does anyone know what might be causing this? It is not an issue with execution time, I have that directive in the php.ini file set to 90 seconds, and the script executes a lot faster than that. Any suggestions?