@shakedko
IF AN EXPERT SAYS IT CAN'T BE DONE GET ANOTHER EXPERT.
- DAVID BEN-GURION

How to find your php.ini file

Finding your php.iniย is pretty straight forward task:ย 

open terminal or cmdย 

execute:

php --ini

If phpย is undefined you should add it to your PATH or just execute:

"/your/path/to/php --ini"

php.inihas several modes (path is different sometimes...):

  • Using one file:ย 

Configuration File (php.ini) Path: /etc/php5/cli

Loaded Configuration File: /etc/php5/cli/php.ini

  • Using several different files (will help to maintain common settings between cli php.ini and httpd php.ini

Scan for additional .ini files in: /etc/php5/conf.d
Additional .ini files parsed: /etc/php5/conf.d/ctype.ini,
/etc/php5/conf.d/curl.ini,
/etc/php5/conf.d/dom.ini,
/etc/php5/conf.d/gd.ini,
/etc/php5/conf.d/hash.ini,
............more .ini files here............ย ย 

files content could be "extension=gd.so" (unix)or "extension=gd.dll" (windows)

there are two more options to get your iniย files:ย 

  • Execute in cli mode:

"php --i | grep .ini"
  • Write your own script and check via browser:

<?php phpinfo(); ?>

That's it, now you can just edit your php.iniย with anything you think you will need for future PHP programming.ย  More about php.iniย may be found atย http://php.net/manual/en/ini.php

Work In Progress ๐Ÿšง
Discipline