zencart的示例PHP.INI文件 [英] example PHP.INI file for zencart
问题描述
您好,我正在为朋友设置Zen-Cart安装.托管服务提供商已通知我将一个PHP.INI文件放在zen-cart文件夹中(我需要设置脚本执行超时值).
我不太精通PHP,所以如果您能给我一个如何做到这一点的例子,我会很感激的.我不知道是否需要在文件中完全设置每个PHP设置,还是可以仅设置需要设置的内容.
我在网上寻找示例,但我无法完全解决.
在此先感谢
Kodemaster123
Hi, I am setting up a Zen-Cart installation for a friend. I have been told by the hosting provider to place a PHP.INI file in the zen-cart folder (I need to set the script execution timeout value).
I am not fluent in PHP so I would really appreaciate it if you could give me an example of how to do this. I don''t know if I need to completely set every PHP setting in in the file or if I can just set what I need to set.
I have looked for examples online but I just can''t quite work it out.
Thanks in advance
Kodemaster123
推荐答案
首先,没有一个通用的PHP.INI文件.重点在于:根据特定主机或每个站点的要求配置PHP.如果存在这样的通用PHP.INI,则它甚至不会暴露给用户,因为所有数据都将在产品内部并由安装程序配置.
因此,您需要1)从托管服务提供商处获取相关信息,2)了解如何通过PHP.INI配置PHP;您可以通过在本地安装PHP以进行学习和阅读来做到这一点:2a)此文件中的PHP.INI注释,2b)PHP文档;请参阅:
http://php.net/manual/en/configuration.php [ http://php.net/manual/en/configuration.file.php [ ^ ],
http://php.net/manual/en/ini.core.php [ ^ ].
—SA
First of all, there is no one universal PHP.INI file. This is the whole point: to configure PHP according to the requirements of particular hosting or each individual site. If such universal PHP.INI existed, it would not be even exposed to the user, as all the data would be internal to the product and configured by the installer.
So, you need to 1) get relevant information from hosting provider, 2) learn how to configure PHP via PHP.INI; this you can do by installing PHP locally for learning purposes and reading: 2a) PHP.INI comments in this file, 2b) PHP documentation; please see:
http://php.net/manual/en/configuration.php[^],
http://php.net/manual/en/configuration.file.php[^],
http://php.net/manual/en/ini.core.php[^].
—SA
这篇关于zencart的示例PHP.INI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!