分享

写回答

发帖

[教程] 斑竹解答有误,php.ini放置在非主目录下的其他目录无效

GoDaddy GoDaddy 3640 人阅读 | 3 人回复

发表于 2008-2-22 02:55:12 | 显示全部楼层 |阅读模式

这是官方解答

How do I add a PHP initialization file to my hosting account?
Print this ArticleComment on this Article Last Updated: December 26, 2007 9:21 AM
Product Support
Tell us what you think!
   
Email*:  
Reason*:   Inaccurate Missing Information Good, But Could be Better Other (Please Explain Below)
Suggestion*:  
Hide  
If you are running Hosting Configuration 2.0, you can create custom .ini files for both PHP 4 (php.ini) and PHP 5 (php5.ini) in the root directory of your site. Initialization files can be used to manage form, server, and environmental variables, server-side cookies, temporary directories, error display, and error logging.

NOTE:php.ini and php5.ini files must be in the root directory to function properly. These files will not work if placed in subdirectories, whether or not they are aliased to the root directory.

回答|共 3 个

大漠孤狼

发表于 2008-2-22 08:58:47 | 显示全部楼层

很多主机商是要求放到所有需要覆盖设置的目录

Longboy

发表于 2008-2-29 05:48:45 | 显示全部楼层

请告诉我godaddy的具体要求。我多次尝试开启mbstring无效!

大漠孤狼

发表于 2008-2-29 10:31:22 | 显示全部楼层

如果不行就把所有目录都复制一份
一般都是这样要求的
您需要登录后才可以回帖 登录 | 注册

本版积分规则