How to set .ini file in the server?

2019-09-26 07:49发布

问题:

For My PDF Generation I am using MPDF. But its not working in client's server. It shows no problem in my local system and my server. So I tried to change the max_execution_time, max_input_time, memory_limit in the ini file. But its not changing. When I used .htaccess it showed " For security reasons, mod_php is not used on this server. Use a php.ini file for php directives"..

I tried ini_set(), .user.ini file, php.ini file options. Is there any other way I can change the ini settings on the server?

回答1:

Adding this specific line to .htaccess file reads the newly created php.ini file in that folder.

AddHandler application/x-httpd-php5 .php


标签: php php-ini