Edit php.ini file

爱⌒轻易说出口 提交于 2019-11-26 07:47:54

问题


I want to increase memory_limit ,max_input_time,max_execution_time in WAMP server.
There is 3 php.ini files.

1. C:\\wamp\\bin\\apache\\Apache2.4.4\\bin\\php.ini<br>
2. C:\\wamp\\bin\\php\\php5.4.12\\php.ini<br>
3. C:\\wamp\\bin\\php\\php5.4.12\\phpForApache.ini<br>

so Which php.ini file should be edit in WAMP server?


回答1:


The wampmanager icon, which sits in the system tray has a menu system.

Use that to edit your php.ini file that is used with Apache.

So its

(left click ) wampmanager icon -> PHP -> php.ini

It could not be simpler.

EDIT/UPDATE:

And now in WAMPServer 3 it has become even easier to change some of the more obvious PHP Settings.

(left click) wampmanager icon -> PHP -> PHP Settings

and you should see a new menu where you can amend some setting from the menu system as below.

  • If there is a Green Tick by an On/Off option then that parameter is set to On.

  • If there is a green arrow symbol to the left of an option, that will either open a selectable list OR a dialog where you can enter a value manually to suit yor needs.




回答2:


Yo can find that in phpinfo()

<?php
phpinfo();
?>

check for Configuration File (php.ini) Path there in the output.




回答3:


It is easy with a few steps. Left Click wamp server icon -> PHP -> PHP Settings -> You will see all basic settings here. Fore example you can increase "upload_max_file_size". Regards..




回答4:


phpinfo();

And check 'loaded configuration file' path.



来源:https://stackoverflow.com/questions/24262606/edit-php-ini-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!