koogua
koogua

Reputation: 254

php.ini configuration items under centos

Configuration File Path : /etc/php.ini

Additional .ini files under /etc/php.d : curl.ini, fileinfo.ini,gd.ini,json.ini, mysql.ini, mysqli.ini, pdo.ini, pdo_mysql.ini, pdo_sqlite.ini, phar.ini,sqlite3.ini,zip.ini

The problem is I can not find where to config these items like "post_max_size", "disable_functions" under .ini files, should I add them into php.ini myself ?

PS: under windows or ubuntu these configuration items seems in the php.ini, am I right?

Upvotes: 1

Views: 4646

Answers (2)

mabe.berlin
mabe.berlin

Reputation: 1073

You should put configurations of the core into the php.ini file and configurations of extensions in the php.d folder.

Upvotes: 1

manishbagra
manishbagra

Reputation: 58

you can do from php functon ini_set

please have look on this

http://php.net/manual/en/function.ini-set.php

Upvotes: 2

Related Questions