problem in installing phalcon ,which php.ini file ?

Hi every one i am installing phalcon on winows 8.1, wamp 3.1 i have read that i should edit php.ini but which one ? 1-wamp icon at system tray ,and choose php.ini? 2-C:\wamp64\bin\php\php5.6.35\php.ini 3-C:\wamp64\bin\apache\apache2.4.33\bin\php.ini?

But number 3 ,is not a config file , it is a .symlink file, some thing like shortcut i dont know what to do?

edited Aug '18

First of all, i dont recommend using PHP 5.6. It's an old distribution with limited support. PHP7.1 is production ready.

You can always check what config file was read by using the phpinfo(); method in a PHP file. But by default, C:\wamp64\bin\php\php5.6.35\php.ini is the config file you should be editing.

Also, don't forget to uncomment this line:

extension_dir = "ext"

thanks for your help how can i change my php version ,in wamp ?

I haven't used wamp for like 2 years, so i may not be the best reference...

But this may help: https://john-dugan.com/upgrade-php-wamp/



10.2k

Did you solve this @Marzieh-Z. The symlink file is the one to edit - C:\wamp64\bin\apache\apache2.4.33\bin\php.ini. I use Wamp. The 3.x has option to install PHP versions and Apache versions. You can then switch to whichever version you prefer.

edited Sep '18

you can use php_ini_loaded_file() function to determine which php.ini is used:

you can see [https://github.com/manaphp/manaphp/blob/develop/ManaPHP/Debugger.php#L233]