tags:

views:

4417

answers:

3

I am pretty new to PHP programming so I apologize if I am missing the obvious.

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:

Fatal error: Call to undefined function mysql_connect() in D:\Hosting\4132900\html\beta\data\dbConnection.php on line 13

All I have in my ini file is:

[Date]
date.timezone = "US/Eastern"

When I upload my entire php.ini file (and rename it to php5.ini), I get Page Not Found errors (404).

+3  A: 

I dont think Windows hosting allows for custom PHP5.ini :(

I check their help site and that article you linked to was for Linux servers.

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

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.

johnnietheblack
A: 

i am using godaddy for domain hosting,i need to send email,in my local mail sending fine while loading to the onlie email is not sending,is there any think i need to set for php.ini,if i want to set means where is the php.ini in the godaddy...

bala
A: 

the answer you are looking for is you need to reset your MX records that will fix it 100% online mail will work fine afterwards.