Kermani Kermani - 7 months ago 29
PHP Question

PHP is working even without php.ini

I have installed php by XAMPP and now I want to install the Phalcon dll, I have to add it to my php.ini

I did all the Phalcon installing steps but I did not get it is not working; I even removed my php.ini content and restarted Apache but php is still working!

How PHP is working without php.ini?
Why my php.ini is not working?

Answer

How PHP is working without php.ini?

php.ini file is not mandatory for PHP to work. It allows you to set up certain parameters, but if there's none then PHP defaults apply.

Why my php.ini is not working?

You are most likely playing with wrong one. Run script with

<?php
phpinfo();

and then look for location of php.ini. This will be the file you need to edit.

Comments