在GoDaddy托管站点上更新PHP.ini [英] Updating PHP.ini on a GoDaddy Hosted site
问题描述
我对PHP编程很陌生,所以如果我遗漏了显而易见的内容,我深表歉意.
I am pretty new to PHP programming so I apologize if I am missing the obvious.
我在GoDaddy托管了一个网站(Windows,PHP5,MySQL 5).我阅读了这篇文章: GoDaddy常见问题解答,并在根文件夹中创建了一个php5.ini文件,但是当我尝试连接到数据库,出现以下错误:
I have a site hosted at GoDaddy (Windows, PHP5, MySQL 5). I read this article: GoDaddy FAQ and created a php5.ini file in the root folder but when I try to connect to the database, I get the following error:
严重错误:调用未定义 函数mysql_connect()在 D:\ Hosting \ 4132900 \ html \ beta \ data \ dbConnection.php 在第13行
Fatal error: Call to undefined function mysql_connect() in D:\Hosting\4132900\html\beta\data\dbConnection.php on line 13
我的ini文件中只有:
All I have in my ini file is:
[Date]
date.timezone = "US/Eastern"
当我上传整个php.ini文件(并将其重命名为php5.ini)时,出现找不到页面"错误(404).
When I upload my entire php.ini file (and rename it to php5.ini), I get Page Not Found errors (404).
推荐答案
我不认为Windows托管允许自定义PHP5.ini:(
I dont think Windows hosting allows for custom PHP5.ini :(
我检查了他们的帮助站点,并且您链接到的文章是针对Linux服务器的.
I check their help site and that article you linked to was for Linux servers.
还要在此页面上比较计划: http://www .godaddy.com/gdshop/hosting/shared.asp?ci = 9009 显示Linux允许自定义PHP5.ini,但不允许Windows
Also, comparing plans on this page: http://www.godaddy.com/gdshop/hosting/shared.asp?ci=9009 shows that Linux allows custom PHP5.ini but not Windows
我想知道是否尝试使用一个螺丝钉固定PHP,并使您尝试使用的"mysql_connect"功能不可用.
I wonder if trying to use one screws up the PHP and makes the "mysql_connect" function you are trying to use not be available.
这篇关于在GoDaddy托管站点上更新PHP.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!