0
votes

The site have a form where pdf is uploaded and form is submitted. For small pdf file size 345KB. it works fine. But for large pdf size the php script ids downloaded instead of execution. I have chnaged the .htaccess as per below for large file support. But for large files same happens.

.htaccess -

php_value upload_max_filesize 32M php_value post_max_size 32M php_value max_execution_time 3600 php_value max_input_time 3600 php_value memory_limit 32M

Any help will be appreciated

Thanks in advance

Mangesh

1

1 Answers

0
votes

Even if a php file fails to run, it should NEVER be downloaded (I assume the downloaded script shows all your php code). This is a serious (apache) problem. Contact your webhost with this!