Do you get a PHP or a SQL error? I had this problem, but my problem was MySQL, not PHP (i.e. PHP handles uploads > 2MB and MySQL doesn't by default). The error I got was "MySQL server has gone away" or something similar.
Bogdan [EMAIL PROTECTED] wrote: >I have to upload files. >My scripts don't work with large files. > >On the "Chapter 19. Handling file uploads" from the php.net doc I found the >following comments : > >[EMAIL PROTECTED] >26-Feb-2002 08:24 >When uploading large files, I've found that the memory limit has to be >twice as large as the upload limit or else the PHP script will not be able >to move/copy the file to a new destination. > >I guess this explain why I cannot manage large files uploading : >The upload is possible but I cannot move the file from the temporary directory. >As I cannot increase the memory_limit (my host does not allow it) I am >wondering if it is possible to upload the file directly to its proper directory. > >Thanks for any help. > >Note : >I cannot modify the upload_tmp_dir directive of the php.ini file as others >scripts also use it. > >The manual mentions : "Setting it using putenv() from within a PHP script will >not work.". Does it mean that what I want to do is not possible ? > >My php.ini is set up as follow : >max_execution_time = 10000 >post_max_size = 30M >upload_max_filesize = 30M >and on my script, the MAX_FILE_SIZE hidden form element is present. > >Pierre > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php