编辑 php.ini 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24262606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Edit php.ini file
提问by Chirag Savsani
I want to increase memory_limit,max_input_time,max_execution_timein WAMP
server.
There is 3 php.ini
files.
我想在服务器中增加memory_limit、max_input_time、max_execution_timeWAMP
。
有3个php.ini
文件。
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?
那么php.ini
应该在WAMP
服务器中编辑哪个文件?
回答by RiggsFolly
The wampmanager icon, which sits in the system tray has a menu system.
位于系统托盘中的 wampmanager 图标有一个菜单系统。
Use that to edit your php.ini file that is used with Apache.
使用它来编辑与 Apache 一起使用的 php.ini 文件。
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.
现在在 WAMPServer 3 中,更改一些更明显的 PHP 设置变得更加容易。
(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.
如果开/关选项有绿色勾号,则该参数设置为开。
如果选项左侧有一个绿色箭头符号,这将打开一个可选列表或一个对话框,您可以在其中手动输入值以满足您的需要。
回答by Dushyant Joshi
Yo can find that in phpinfo()
你可以在phpinfo() 中找到
<?php
phpinfo();
?>
check for Configuration File (php.ini) Path
there in the output.
Configuration File (php.ini) Path
在输出中检查那里。
回答by Yasin Sevingen
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..
只需几步即可轻松完成。左键单击 wamp 服务器图标 -> PHP -> PHP 设置 -> 您将在这里看到所有基本设置。例如,您可以增加“upload_max_file_size”。问候..
回答by Eloy Velazquez
If you modify C:\wamp\bin\php\php5.4.12\php.ini they are all automatically modified.
如果你修改 C:\wamp\bin\php\php5.4.12\php.ini 都会自动修改。
回答by Igor Savchenko
phpinfo();
And check 'loaded configuration file' path.
并检查“加载的配置文件”路径。