Question : move_uploaded_file() not working

Hi,

   I have one form with 8 file fields. When i uploads 1/2 images of size more than 2mb, it gets uploaded. But when i am uploading 8 images each of size more than 2mb, it is not uploaded. It gives an error as

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 [email protected] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

or come up with warnings like -
Warning: move_uploaded_file(/tmp/phpiVhksk) [function.move-uploaded-file]: failed to open stream: No such file or directory in /mnt/w0611/d20/s43/b02aab70/www/d2ecars.com/Car_Images.php  on line 168

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpiVhksk' to 'images/upload_images/Volvo_DC1_concept_car_(2000)_1.JPG' in /mnt/w0611/d20/s43/b02aab70/www/d2ecars.com/Car_Images.php on line 168


I have set variables in php.ini as-
register_globals = on
upload_max_filesize = 350M
post_max_size = 350M
session.save_path = "/mnt/w9999/.phpsessions"
upload_tmp_dir = "/tmp/"
zend_extension = /usr/local/nf/share/ioncube/ioncube_loader_fre_4.4.s

also set variables in .htaccess file as-
Setenv TIMEOUT 300
<IfModule mod_php4.c>
php_value upload_max_filesize 350M
php_value post_max_size 350M
php_value post_max_size = 350M ;
</IfModule>

Set the values from php script as-
        set_time_limit(0);
      session_start();
      error_reporting( E_ALL );
        ini_set('memory_limit', '350M');  
      ini_set('upload_max_filesize', '350M');
      ini_set('post_max_size', '350M');


Can you please give me any suggestion to resolve the error and can upload 8 images of more than 2mb in size?

Thanks

Related Solutions: move_uploaded_file not working

Answer : move_uploaded_file() not working

Windows Storage is just like a standard Windows OS with less network and other feature than Standard Edition. I am sure you can install any OS on this server.

K
Random Solutions  
 
programming4us programming4us