分享

写回答

发帖

[提问] 我的Godaddy虚拟空间中为什么没有php.ini呢?

GoDaddy GoDaddy 9142 人阅读 | 21 人回复

发表于 2008-11-12 11:38:23 | 显示全部楼层 |阅读模式

事情起因请大家 看: http://bbs.idcspy.com/thread-35231-1-1.html
GD给的回复:
  1. Our support staff has responded to your request, details of which are described below:

  2. Discussion Notes
  3. Support Staff Response
  4. Dear Sir/Madam,

  5. The modules, "allow_url_fopen" and "allow_url_include" are available on your hosting account. You can enable them via a php5.ini file.


  6. 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. By default, only php.ini is automatically created during new account setup.

  7. Initialization files can be used to manage form, server, and environmental variables, server-side cookies, temporary directories, error display, and error logging.

  8. 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.


  9. Unfortunately we do not support third party code, scripting or applications beyond ensuring proper connection strings are in place for database and hosting connectivity. You will need to perform online searches or contact the vendor of the software to find more information concerning your issue(s).
  10. Please let us know if we can help you in any other way.

  11. Sincerely,

  12. Eric P.   
  13. Online Support Technician
复制代码


为什么我的空间找不到php.ini呢,我没有删除过的。谢谢大家。

回答|共 21 个

ecwx

发表于 2008-11-12 11:41:31 | 显示全部楼层

你要自己传上去啊,我的也没有。

wherearem

发表于 2008-11-12 11:43:53 | 显示全部楼层

啊??自己传???那那些缓存目录之类的应该怎么写呢?

add.c

发表于 2008-11-12 11:53:11 | 显示全部楼层

这有个默认的http://bbs.idcspy.com/thread-32543-1-1.html

markpearl

发表于 2008-11-12 12:50:55 | 显示全部楼层

我的空间里就有啊。不用自己传的

wherearem

发表于 2008-11-12 13:58:09 | 显示全部楼层

我的默认开通的时候就没有呀,需要自己传吗?我没传的时候,php是可以正常使用的,我上传之了,但问题依旧,上传后就可以马上生效新的php.ini配置吗?

一路同行

发表于 2008-11-12 14:08:39 | 显示全部楼层

二进制上传,上传后就生效了

wherearem

发表于 2008-11-12 14:33:43 | 显示全部楼层

谢谢版主,我刚上传了,但问题依旧
http://hsfulicheng.cn/manyoutest.php

add.c

发表于 2008-11-12 14:35:43 | 显示全部楼层

php5要使用的php5.ini
php4默认使用php.ini

wherearem

发表于 2008-11-12 14:37:22 | 显示全部楼层

我的不是linux主机,开通后也没有php.ini ……我上传了add.c版主给的链接中的php.ini 但依旧 提示 URL file-access is disabled in the server configuration
关于这个提示的解释:https://www.google.com/adsense/support/bin/answer.py?hl=cn&answer=70494
我上传的php.ini内容
  1. register_globals = off
  2. allow_url_fopen = on

  3. expose_php = Off
  4. max_input_time = 60
  5. variables_order = "EGPCS"
  6. extension_dir = ./
  7. upload_tmp_dir = /tmp
  8. precision = 12
  9. SMTP = relay-hosting.secureserver.net
  10. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

  11. [Zend]
  12. zend_extension=/usr/local/zo/ZendExtensionManager.so
  13. zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则