Update PHP.ini on GoDaddy Hosted

I am new to PHP programming, so I apologize if I don't see the obvious.

I have a website hosted by GoDaddy (Windows, PHP5, MySQL 5). I read this article: GoDaddy FAQ and created the php5.ini file in the root folder, but when I try to connect to the database, I get the following error:

Fatal error: call undefined function mysql_connect () in D: \ hosting \ 4132900 \ HTML \ beta \ Data \ dbConnection.php on line 13

All I have in my ini file:

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

When I download the entire php.ini file (and rename it to php5.ini), I get errors with page errors (404).

+3
source share
3 answers

, Windows- PHP5.ini: (

Linux-.

, : http://www.godaddy.com/gdshop/hosting/shared.asp?ci=9009 , Linux PHP5.ini, Windows

, PHP mysql_connect, , .

+3

, php.ini godaddy. phpinfo() , (argh!). . public_html.

-, godaddy, .

http://support.godaddy.com/help/article/8913/what-filename-does-my-php-initialization-file-phpini-need-to-use

, php.ini, php5.ini .user.ini www, public_html . .

, " " php ( php).

. godaddy.

http://www.ostraining.com/blog/coding/phpini-file/

+1

, php5.ini Windows: GoDaddy

". php5.ini Windows, php.ini."

0
source

Source: https://habr.com/ru/post/1706150/


All Articles