I have been out of PHP for a long time, so hopefully this is a simple oversight. But I can not enable the MySQL extension.
Customization
- 64-bit version of Windows 8 Pro
- NetBeans 7.2.1 (PHP Embedded Web Server)
- MySQL
- PHP 5.4.8
Problem
Fatal error: call to undefined function mysql_connect ()
Attempt to resolve
- Copy php.ini-development to php.ini (files where I installed PHP, E: \ Software \ php-5.4.8-Win32-VC9-x86)
- Edit php.ini by uncommenting the lines
- extension_dir = "ext"
- extension = php_mysqli.dll
- Added E: \ Software \ php-5.4.8-Win32-VC9-x86 \ ext for NetBeans PHP Include path in project properties
Still crashing with the same error
Diagnostic output
Added phpinfo () call at the top of the page. It means:
Configuration File (php.ini) Path C: \ Windows
However, in C: \ Windows there is no php.ini. In fact, I searched all the drives and found only one php.ini file that I previously edited.
Question
Where is NetBeans / PHP retrieving the configuration since starting my project and how can I edit this configuration?
source share