Results 1 to 2 of 2
-
05-18-2005, 12:26 AM #1Newbie
- Join Date
- Jun 2004
- Posts
- 19
Help with a PHP script upload problem
On my IIS 6 server, users are not able to upload files with PHP / MYSQL scripts that are over 1 MB.
I have made the following changes to files on my server, but I must be missing something.
1. PHP.ini:
max_execution_time = 500
max_input_time = 80
memory_limit = 16M
post_max_size = 128M
file_uploads = On
upload_tmp_dir = "C:\php4\uploads"
upload_max_filesize = 64M
allow_url_fopen = On
default_socket_timeout = 60
2. my.ini
max_connections = 500
key_buffer = 64M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 64
wait_timeout = 1800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
3. metabase.xml
AspMaxRequestEntityAllowed="45204800"
I must be missing something. Any help would be greatly appreciated.
Brandon
-
05-18-2005, 04:46 AM #2Newbie
- Join Date
- May 2005
- Location
- Madrid, Spain
- Posts
- 8
Make sure:
a) your users need less than 80secs (max_input_time) to upload a 1Mb file (ie: they have fast connections) and increment max_input_time if necessary
b) the php.ini you're editing is in the right location. Do a phpinfo() to check if "post_max_size" is correctly set. Maybe you're editing the wrong file.