note 79465 deleted from install.windows by cmb
| From: | cmb@php.net | Date: | Sun, 31 Mar 2019 08:57:01 +0000 |
| Subject: | note 79465 deleted from install.windows by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210502@lists.php.net to get a copy of this message | ||
Note Submitter: Philip Thompson
----
If you use the installer for Windows (PHP >= 5.2.x) and you want the mysql_* functions to be
used, you may have to restart your machine after you install.
I was getting the error "Call to undefined function mysql_connect..." However, I knew that
my php.ini settings were correct and I was including php_mysql.dll. When I viewed phpinfo(), it was
not showing that MySQL was part of the install. My first thought was to restart Apache - this did
not change anything. So, then I restarted the machine, viewed phpinfo() again and it was now there.
I've manually installed several times on Windows and not had this problem. This was my first
time running the installer. I think it may have something to do with setting registry values or
changing environment variables. Nonetheless, hope this helps.