tortenazor
04-05-2007, 08:30 AM
HI,
I know this must have been answered hundreds of times, but after searching the forums and following all steps, I'm still stuck on this.
I have this file uploading scripts which execute in php4. Bigger uploads were failing, so I followed the tutorials and added this to my .htaccess
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
Now for uploads bigger that about 2M I get this:
Warning: move_uploaded_file(/tmp/phpZk1W3w) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/bailscom/public_html/video_upload_test.php on line 55
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpZk1W3w' to 'tempvideos/321321321_3232.mov' in /home/bailscom/public_html/video_upload_test.php on line 55
I've been doing some googling and found this post in some forum.
"I spent a good 2 hours today wondering why I could not upload files larger than 15MB even after upping my post_max_size, max_execution_time, max_input_time, and upload_max_filesize. Turns out php stores the uploaded file in memory until you do something with it. SO you also NEED to set the memory_limit to the correct file size."
So I told to myself, lets add this to my htaccess. But nothing changed and phpinfo() did not print any memory_limit variable.
Then I thought maybe I should move to php5. I did, and now it seems than the upload_max_filesize defaults to 2M no matter what I put into .htaccess and php.ini
Now I'm stuck. I have this feeling this is working for everybody but me and I'm missing something very obvious.
I've put up a small test page here:
http://cozy.cirtexhosting.com/~bailscom/test.html
And I'm pasting what's inside my .htaccess and php.ini here:
php.ini
memory_limit 100M
upload_max_filesize 100M
post_max_size 100M
output_buffering on
max_execution_time 1000
max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
.htaccess
php_value memory_limit 100M
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
I'm lost here... I'd appreciate any help.
I know this must have been answered hundreds of times, but after searching the forums and following all steps, I'm still stuck on this.
I have this file uploading scripts which execute in php4. Bigger uploads were failing, so I followed the tutorials and added this to my .htaccess
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
Now for uploads bigger that about 2M I get this:
Warning: move_uploaded_file(/tmp/phpZk1W3w) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/bailscom/public_html/video_upload_test.php on line 55
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpZk1W3w' to 'tempvideos/321321321_3232.mov' in /home/bailscom/public_html/video_upload_test.php on line 55
I've been doing some googling and found this post in some forum.
"I spent a good 2 hours today wondering why I could not upload files larger than 15MB even after upping my post_max_size, max_execution_time, max_input_time, and upload_max_filesize. Turns out php stores the uploaded file in memory until you do something with it. SO you also NEED to set the memory_limit to the correct file size."
So I told to myself, lets add this to my htaccess. But nothing changed and phpinfo() did not print any memory_limit variable.
Then I thought maybe I should move to php5. I did, and now it seems than the upload_max_filesize defaults to 2M no matter what I put into .htaccess and php.ini
Now I'm stuck. I have this feeling this is working for everybody but me and I'm missing something very obvious.
I've put up a small test page here:
http://cozy.cirtexhosting.com/~bailscom/test.html
And I'm pasting what's inside my .htaccess and php.ini here:
php.ini
memory_limit 100M
upload_max_filesize 100M
post_max_size 100M
output_buffering on
max_execution_time 1000
max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
.htaccess
php_value memory_limit 100M
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
RewriteEngine On
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
I'm lost here... I'd appreciate any help.